X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fprotocol_key.c;h=e2f67b194e08f5bf895318a3327642fc72e3e2a0;hp=301ead5da6e4acb3ad8ef1fe6a33d72f4bf06e13;hb=8677b839dcd343277e1e519a2d40c8bd0a980dd5;hpb=776dbf88df1911ec379c2fece0089fd2f5c71021 diff --git a/src/protocol_key.c b/src/protocol_key.c index 301ead5d..e2f67b19 100644 --- a/src/protocol_key.c +++ b/src/protocol_key.c @@ -233,7 +233,7 @@ bool ans_key_h(connection_t *c) { return true; } - if(!*address && from->address.sa.sa_family != AF_UNSPEC) { + if(!*address && from->address.sa.sa_family != AF_UNSPEC && to->minmtu) { char *address, *port; ifdebug(PROTOCOL) logger(LOG_DEBUG, "Appending reflexive UDP address to ANS_KEY from %s to %s", from->name, to->name); sockaddr2str(&from->address, &address, &port);