From: Guus Sliepen Date: Thu, 14 Jan 2016 14:07:22 +0000 (+0100) Subject: Only add a reflexive address when we're sure it's working. X-Git-Tag: release-1.0.27~24 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8677b839dcd343277e1e519a2d40c8bd0a980dd5;p=oweals%2Ftinc.git Only add a reflexive address when we're sure it's working. --- diff --git a/src/protocol_key.c b/src/protocol_key.c index 301ead5..e2f67b1 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);