Improved stability of making connections in reverse mode.

This commit is contained in:
Vladimir Chebotarev 2020-09-07 21:53:00 +03:00
commit f785d712c8

View file

@ -138,7 +138,7 @@ disable_tunnel(struct server *server) {
static socket_t static socket_t
listen_on_port(uint16_t port) { listen_on_port(uint16_t port) {
#define IPV4_LOCALHOST 0x7F000001 #define IPV4_LOCALHOST 0x7F000001
return net_listen(IPV4_LOCALHOST, port, 1); return net_listen(IPV4_LOCALHOST, port, 2);
} }
static bool static bool