Only add a reflexive address when we're sure it's working.
This commit is contained in:
parent
cda5a477c8
commit
420989e4c3
1 changed files with 1 additions and 1 deletions
|
@ -400,7 +400,7 @@ bool ans_key_h(connection_t *c, const char *request) {
|
||||||
return true;
|
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;
|
char *address, *port;
|
||||||
logger(DEBUG_PROTOCOL, LOG_DEBUG, "Appending reflexive UDP address to ANS_KEY from %s to %s", from->name, to->name);
|
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);
|
sockaddr2str(&from->address, &address, &port);
|
||||||
|
|
Loading…
Reference in a new issue