diff options
-rw-r--r-- | node/EthernetTap.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/node/EthernetTap.cpp b/node/EthernetTap.cpp index e50e48d3..01bd72cc 100644 --- a/node/EthernetTap.cpp +++ b/node/EthernetTap.cpp @@ -180,7 +180,7 @@ bool EthernetTap::addIP(const InetAddress &ip) { Mutex::Lock _l(_ips_m); - if (!ip.isValid()) + if (!ip) return false; if (_ips.count(ip) > 0) return true; |