mirror of
https://github.com/coturn/coturn.git
synced 2025-10-28 05:21:00 +01:00
c++ fixes
This commit is contained in:
parent
79d68a27cb
commit
8f821880fc
@ -67,7 +67,7 @@ static int run_stunclient(const char* rip, int rport, int *port, int *rfc5780, i
|
|||||||
err(-1, NULL);
|
err(-1, NULL);
|
||||||
|
|
||||||
if (!addr_any(&real_local_addr)) {
|
if (!addr_any(&real_local_addr)) {
|
||||||
if (addr_bind(udp_fd, &real_local_addr,0) < 0)
|
if (addr_bind(udp_fd, &real_local_addr,0,1) < 0)
|
||||||
err(-1, NULL);
|
err(-1, NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -80,7 +80,7 @@ static int run_stunclient(const char* rip, int rport, int *port, int *rfc5780, i
|
|||||||
|
|
||||||
addr_set_port(&real_local_addr, response_port);
|
addr_set_port(&real_local_addr, response_port);
|
||||||
|
|
||||||
if (addr_bind(new_udp_fd, &real_local_addr, 0) < 0)
|
if (addr_bind(new_udp_fd, &real_local_addr, 0, 1) < 0)
|
||||||
err(-1, NULL);
|
err(-1, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user