Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dd73a71a15 | ||
|
|
c243fd4c3f |
@@ -201,7 +201,7 @@ enable_tunnel_forward_any_port(struct server *server,
|
|||||||
|
|
||||||
if (port < port_range.last) {
|
if (port < port_range.last) {
|
||||||
LOGW("Could not forward port %" PRIu16", retrying on %" PRIu16,
|
LOGW("Could not forward port %" PRIu16", retrying on %" PRIu16,
|
||||||
port, port + 1);
|
port, (uint16_t) (port + 1));
|
||||||
port++;
|
port++;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// for portability
|
// for portability (kill, readlink, strdup, strtok_r)
|
||||||
#define _POSIX_SOURCE // for kill()
|
#define _POSIX_C_SOURCE 200809L
|
||||||
#define _BSD_SOURCE // for readlink()
|
#define _BSD_SOURCE
|
||||||
|
|
||||||
// modern glibc will complain without this
|
// modern glibc will complain without this
|
||||||
#define _DEFAULT_SOURCE
|
#define _DEFAULT_SOURCE
|
||||||
|
|||||||
Reference in New Issue
Block a user