|
|
|
@ -442,7 +442,7 @@ namespace tunnel
@@ -442,7 +442,7 @@ namespace tunnel
|
|
|
|
|
if (msg) |
|
|
|
|
{ |
|
|
|
|
uint32_t prevTunnelID = 0, tunnelID = 0; |
|
|
|
|
std::shared_ptr<TunnelBase> prevTunnel; |
|
|
|
|
std::shared_ptr<TunnelBase> prevTunnel; |
|
|
|
|
do |
|
|
|
|
{ |
|
|
|
|
std::shared_ptr<TunnelBase> tunnel; |
|
|
|
@ -457,8 +457,7 @@ namespace tunnel
@@ -457,8 +457,7 @@ namespace tunnel
|
|
|
|
|
tunnel = prevTunnel; |
|
|
|
|
else if (prevTunnel) |
|
|
|
|
prevTunnel->FlushTunnelDataMsgs (); |
|
|
|
|
else |
|
|
|
|
LogPrint(eLogWarning, "Tunnel: no previous tunnel, prevTunnelID=", prevTunnelID, "tunnelID=", tunnelID, "type=", (int)typeID); |
|
|
|
|
|
|
|
|
|
if (!tunnel) |
|
|
|
|
tunnel = GetTunnel (tunnelID); |
|
|
|
|
if (tunnel) |
|
|
|
@ -469,7 +468,8 @@ namespace tunnel
@@ -469,7 +468,8 @@ namespace tunnel
|
|
|
|
|
HandleTunnelGatewayMsg (tunnel, msg); |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
LogPrint (eLogWarning, "Tunnel: tunnel with id ", tunnelID, " not found, type=", (int)typeID); |
|
|
|
|
LogPrint (eLogWarning, "Tunnel: tunnel not found, tunnelID=", tunnelID, " previousTunnelID=", prevTunnelID, " type=", (int)typeID); |
|
|
|
|
|
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
case eI2NPVariableTunnelBuild: |
|
|
|
|