From 420989e4c3ff109c7d077b2f8c06506540f1c0bd Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Thu, 14 Jan 2016 15:07:22 +0100 Subject: [PATCH] Only add a reflexive address when we're sure it's working. --- src/protocol_key.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protocol_key.c b/src/protocol_key.c index dd547047..d24d4aca 100644 --- a/src/protocol_key.c +++ b/src/protocol_key.c @@ -400,7 +400,7 @@ bool ans_key_h(connection_t *c, const char *request) { 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; logger(DEBUG_PROTOCOL, LOG_DEBUG, "Appending reflexive UDP address to ANS_KEY from %s to %s", from->name, to->name); sockaddr2str(&from->address, &address, &port); -- 2.20.1