Commit 45279c9d authored by Marcin Siodelski's avatar Marcin Siodelski

[master] Fixed the IfaceMgr code which missed negation in error condition.

Agreed on jabber.
parent 296f21c1
...@@ -516,7 +516,7 @@ IfaceMgr::openSockets4(const uint16_t port, const bool use_bcast, ...@@ -516,7 +516,7 @@ IfaceMgr::openSockets4(const uint16_t port, const bool use_bcast,
} }
IOAddress out_address("0.0.0.0"); IOAddress out_address("0.0.0.0");
if (iface->getAddress4(out_address)) { if (!iface->getAddress4(out_address)) {
IFACEMGR_ERROR(SocketConfigError, error_handler, IFACEMGR_ERROR(SocketConfigError, error_handler,
"the interface " << iface->getName() "the interface " << iface->getName()
<< " has no usable IPv4 addresses configured"); << " has no usable IPv4 addresses configured");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment