X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fnode.c;h=0cb2445413cd54bd7c86e65ee5b2331059d5405f;hb=ac77e3c1eb9d7503e30dd69e96e411e7baaa1dfd;hp=aab83ca7b020dc1e2a6bb38f2bb4d52dbe19bdcc;hpb=f57d53c3ad9af89489e15a8cfd94b56937bf3179;p=tinc diff --git a/src/node.c b/src/node.c index aab83ca7..0cb24454 100644 --- a/src/node.c +++ b/src/node.c @@ -140,6 +140,13 @@ void update_node_udp(node_t *n, const sockaddr_t *sa) { n->hostname = sockaddr2hostname(&n->address); logger(DEBUG_PROTOCOL, LOG_DEBUG, "UDP address of %s set to %s", n->name, n->hostname); } + + /* invalidate UDP information - note that this is a security feature as well to make sure + we can't be tricked into flooding any random address with UDP packets */ + n->status.udp_confirmed = false; + n->mtuprobes = 0; + n->minmtu = 0; + n->maxmtu = MTU; } bool dump_nodes(connection_t *c) {