Skip to content
Snippets Groups Projects
Commit a8017276 authored by Daniel Salzman's avatar Daniel Salzman
Browse files

server: improve log for nonlocal bind

parent 9c27a5a6
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -203,7 +203,7 @@ static int server_init_iface(iface_t *new_if, struct sockaddr_storage *addr, int
udp_bind_flags |= NET_BIND_NONLOCAL;
sock = net_bound_socket(SOCK_DGRAM, (struct sockaddr *)addr, udp_bind_flags);
if (sock >= 0 && !warn_bind) {
log_warning("address '%s' bound, but required nonlocal bind", addr_str);
log_warning("address '%s UDP' bound, but required nonlocal bind", addr_str);
warn_bind = true;
}
}
......@@ -236,7 +236,7 @@ static int server_init_iface(iface_t *new_if, struct sockaddr_storage *addr, int
tcp_bind_flags |= NET_BIND_NONLOCAL;
sock = net_bound_socket(SOCK_STREAM, (struct sockaddr *)addr, tcp_bind_flags);
if (sock >= 0) {
log_warning("address '%s' bound, but required nonlocal bind", addr_str);
log_warning("address '%s TCP' bound, but required nonlocal bind", addr_str);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment