X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fprotocol_key.c;h=c46c14cfbd02675316f6d8c53f253c6581bead87;hb=9bb230f30f665779eb89dcce077a15360ec50be1;hp=8cbec1be28a0883c79d9aba8fd77d709f0529238;hpb=04fc19112da5e7fcefefcf6e490987cdcfb6f620;p=tinc diff --git a/src/protocol_key.c b/src/protocol_key.c index 8cbec1be..c46c14cf 100644 --- a/src/protocol_key.c +++ b/src/protocol_key.c @@ -236,6 +236,13 @@ bool req_key_h(connection_t *c, const char *request) { return true; } + /* If this is a SPTPS packet, see if sending UDP info helps. + Note that we only do this if we're the destination or the static relay; + otherwise every hop would initiate its own UDP info message, resulting in elevated chatter. */ + + if(experimental && (reqno == REQ_KEY || reqno == REQ_SPTPS) && to->via == myself) + send_udp_info(myself, from); + /* Check if this key request is for us */ if(to == myself) { /* Yes */