From: Guus Sliepen Date: Sat, 24 Oct 2009 19:32:06 +0000 (+0200) Subject: Always reply to MTU probes via UDP. X-Git-Tag: release-1.0.11~9 X-Git-Url: https://git.tinc-vpn.org/git/browse?a=commitdiff_plain;h=a8f7fccbc2b5f1c4c39fc2804abaa358b31a5080;p=tinc Always reply to MTU probes via UDP. It could sometime happen that a node would return MTU probes via TCP, which does not make a lot of sense. --- diff --git a/src/net_packet.c b/src/net_packet.c index 7bf12497..626f8b1c 100644 --- a/src/net_packet.c +++ b/src/net_packet.c @@ -135,7 +135,7 @@ void mtu_probe_h(node_t *n, vpn_packet_t *packet, length_t len) { if(!packet->data[0]) { packet->data[0] = 1; - send_packet(n, packet); + send_udppacket(n, packet); } else { if(len > n->maxmtu) len = n->maxmtu;