X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fprotocol_key.c;h=a3cf3f51b5965b90923b525494593a971f611e08;hb=refs%2Fheads%2F1.1-brainpool;hp=0eeddb861bf675630de4be970d39052a69f6bc9a;hpb=c3d357af6c73d538f7cbcaca293ebbca666d3a82;p=tinc diff --git a/src/protocol_key.c b/src/protocol_key.c index 0eeddb86..a3cf3f51 100644 --- a/src/protocol_key.c +++ b/src/protocol_key.c @@ -386,7 +386,7 @@ bool ans_key_h(connection_t *c, const char *request) { update_node_udp(from, &sa); } - if(from->options & OPTION_PMTU_DISCOVERY) + if(from->options & OPTION_PMTU_DISCOVERY && !(from->options & OPTION_TCPONLY)) send_mtu_probe(from); } @@ -435,7 +435,7 @@ bool ans_key_h(connection_t *c, const char *request) { update_node_udp(from, &sa); } - if(from->options & OPTION_PMTU_DISCOVERY) + if(from->options & OPTION_PMTU_DISCOVERY && !(from->options & OPTION_TCPONLY)) send_mtu_probe(from); return true;