X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fnet_packet.c;h=e0370eda17455ce49ee94247331ccef955b37c10;hb=2c9126ab604fce80d9acd1bbdb485eae50aefcad;hp=31c66d3248126fb7a913a973ecf09873d538edd7;hpb=2a441065a26f9796cdbc6e4ade50409b91d73f7e;p=tinc diff --git a/src/net_packet.c b/src/net_packet.c index 31c66d32..e0370eda 100644 --- a/src/net_packet.c +++ b/src/net_packet.c @@ -545,7 +545,10 @@ bool receive_tcppacket_sptps(connection_t *c, const char *data, size_t len) { /* If we're not the final recipient, relay the packet. */ if(to != myself) { - send_sptps_data(to, from, 0, data, len); + if(to->status.validkey) { + send_sptps_data(to, from, 0, data, len); + } + try_tx(to, true); return true; }