fix: rename var

This commit is contained in:
Serafim 2025-04-28 21:49:16 +03:00
parent 3e367248b6
commit 9375bb7b9c
1 changed files with 1 additions and 1 deletions

View File

@ -228,7 +228,7 @@ int my_udp() {
target_addr.sin_port = htons(curr_port); target_addr.sin_port = htons(curr_port);
// Преобразование IP // Преобразование 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++; n_fail_requests++;
status = -501; // Код ошибки: неверный IP status = -501; // Код ошибки: неверный IP
if (sockfd != -1) close(sockfd); if (sockfd != -1) close(sockfd);