Merge branch 'thkr-1.1-20160510-fix-receive_tcppacket_sptps' into thkr-1.1-ponyhof

This commit is contained in:
thorkill 2016-05-10 12:01:06 +02:00
commit bd95c231ce

View file

@ -471,8 +471,11 @@ bool receive_tcppacket_sptps(connection_t *c, const char *data, int len) {
/* If we're not the final recipient, relay the packet. */
if(to != myself) {
send_sptps_data(to, from, 0, data, len);
try_tx(to, true);
if (!to->status.waitingforkey) {
send_sptps_data(to, from, 0, data, len);
try_tx(to, true);
} else
logger(DEBUG_ALWAYS, LOG_INFO, "Cannot forward TCP packet from %s (%s) to %s (%s) because we are still wating for key", from->name, from->hostname, to->name, to->hostname);
return true;
}