X-Git-Url: http://git.meshlink.io/?p=meshlink;a=blobdiff_plain;f=src%2Fnet_packet.c;h=a2709553fb9893f555d548cc57a8c62372730289;hp=0510b54be8def584f8b9f33d78329b4d852baaa7;hb=ffda069e617db34c12321b438964e4c369053466;hpb=9ece2f9ded8c65c7f20826f2ec9ae1f0527bdd7c diff --git a/src/net_packet.c b/src/net_packet.c index 0510b54b..a2709553 100644 --- a/src/net_packet.c +++ b/src/net_packet.c @@ -185,7 +185,14 @@ static void mtu_probe_h(meshlink_handle_t *mesh, node_t *n, vpn_packet_t *packet is possible using the address and socket that the reply packet used. */ - n->status.udp_confirmed = true; + if(!n->status.udp_confirmed) { + char *address, *port; + sockaddr2str(&n->address, &address, &port); + send_request(mesh, n->nexthop->connection, NULL, "%d %s %s . -1 -1 -1 0 %s %s", ANS_KEY, n->name, n->name, address, port); + free(address); + free(port); + n->status.udp_confirmed = true; + } /* If we haven't established the PMTU yet, restart the discovery process. */