diff options
Diffstat (limited to 'node')
| -rw-r--r-- | node/Switch.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/node/Switch.cpp b/node/Switch.cpp index a759a01b..e6a8e6fd 100644 --- a/node/Switch.cpp +++ b/node/Switch.cpp @@ -218,7 +218,7 @@ bool Switch::sendHELLO(const SharedPtr<Peer> &dest,Demarc::Port localPort,const outp.append(now); _r->identity.serialize(outp,false); outp.armor(dest->key(),false); - return _r->demarc->send(localPort,remoteAddr,outp.data(),outp.size(),-1); + return (_r->demarc->send(localPort,remoteAddr,outp.data(),outp.size(),-1) != Demarc::NULL_PORT); } bool Switch::unite(const Address &p1,const Address &p2,bool force) |
