fix: rename var
This commit is contained in:
parent
3e367248b6
commit
9375bb7b9c
|
@ -228,7 +228,7 @@ int my_udp() {
|
|||
target_addr.sin_port = htons(curr_port);
|
||||
|
||||
// Преобразование IP
|
||||
if (inet_pton(AF_INET, global_ip, &target_addr.sin_addr) <= 0) {
|
||||
if (inet_pton(AF_INET, ip, &target_addr.sin_addr) <= 0) {
|
||||
n_fail_requests++;
|
||||
status = -501; // Код ошибки: неверный IP
|
||||
if (sockfd != -1) close(sockfd);
|
||||
|
|
Loading…
Reference in New Issue