Добавление my_log() и скрипта build.py #19

Merged
serafim merged 5 commits from my_log into dev 2025-04-28 21:59:33 +03:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 9375bb7b9c - Show all commits

View File

@ -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);