diff --git a/node/Switch.cpp b/node/Switch.cpp index 90cd11b3e..b536412fc 100644 --- a/node/Switch.cpp +++ b/node/Switch.cpp @@ -962,7 +962,7 @@ void Switch::doAnythingWaitingForPeer(void* tPtr, const SharedPtr& peer) Mutex::Lock _l(_txQueue_m); for (std::list::iterator txi(_txQueue.begin()); txi != _txQueue.end();) { if (txi->dest == peer->address()) { - if (_trySend(tPtr, txi->packet, txi->encrypt, 0, txi->flowId)) { + if (_trySend(tPtr, txi->packet, txi->encrypt, txi->nwid, txi->flowId)) { _txQueue.erase(txi++); } else {