Merge branch 'thkr-1.1-20160510-fix-receive_tcppacket_sptps' into thkr-1.1-ponyhof
This commit is contained in:
commit
bd95c231ce
1 changed files with 5 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue