X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fnet_packet.c;h=328452414f4da9042a51d5744d7fe5a306091182;hb=c46bdbde18629f0a0613c776c13a79fea0ec6093;hp=2e47df40f618d6c5e8affa251798295d835eeb82;hpb=b1421b919090351e885ed3d06df67fb2eb69e765;p=tinc diff --git a/src/net_packet.c b/src/net_packet.c index 2e47df40..32845241 100644 --- a/src/net_packet.c +++ b/src/net_packet.c @@ -64,7 +64,7 @@ static char lzo_wrkmem[LZO1X_999_MEM_COMPRESS > LZO1X_1_MEM_COMPRESS ? LZO1X_999 static void send_udppacket(node_t *, vpn_packet_t *); -unsigned replaywin = 16; +unsigned replaywin = 32; bool localdiscovery = true; bool udp_discovery = true; int udp_discovery_keepalive_interval = 10; @@ -1135,7 +1135,7 @@ static void try_tx_sptps(node_t *n, bool mtu) { /* If we do have a static relay, try everything with that one instead. */ if(via != n) - try_tx_sptps(via, mtu); + return try_tx_sptps(via, mtu); /* Otherwise, try to establish UDP connectivity. */