X-Git-Url: http://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fprotocol_key.c;h=aaf0f3309261db1dafe40659165758157042b1c6;hb=98716a227ee39fdcdfafa7309adb73499311a2ce;hp=cfa2f53ffe0ff36b759009f6779b68ecb65d66eb;hpb=eef792c01ed1704c03d55163de3f302a3c1d42fa;p=tinc diff --git a/src/protocol_key.c b/src/protocol_key.c index cfa2f53f..aaf0f330 100644 --- a/src/protocol_key.c +++ b/src/protocol_key.c @@ -404,11 +404,6 @@ bool ans_key_h(connection_t *c, const char *request) { sockaddr_t sa = str2sockaddr(address, port); update_node_udp(from, &sa); } - - /* Don't send probes if we can't send UDP packets directly to that node. - TODO: the indirect (via) condition can change at any time as edges are added and removed, so this should probably be moved to graph.c. */ - if((from->via == myself || from->via == from) && from->options & OPTION_PMTU_DISCOVERY && !(from->options & OPTION_TCPONLY)) - send_mtu_probe(from); } return true; @@ -468,9 +463,6 @@ bool ans_key_h(connection_t *c, const char *request) { update_node_udp(from, &sa); } - if(from->options & OPTION_PMTU_DISCOVERY && !(from->options & OPTION_TCPONLY)) - send_mtu_probe(from); - return true; #endif }