Commit e26901a1 authored by Tomek Mrugalski's avatar Tomek Mrugalski 🛰
Browse files

Fix for failing test in IfaceMgr on FreeBSD (fix after 1238 merge)

parent eaa492e0
...@@ -340,7 +340,8 @@ IfaceMgr::openSocket6(Iface& iface, const IOAddress& addr, int port) { ...@@ -340,7 +340,8 @@ IfaceMgr::openSocket6(Iface& iface, const IOAddress& addr, int port) {
memset(&addr6, 0, sizeof(addr6)); memset(&addr6, 0, sizeof(addr6));
addr6.sin6_family = AF_INET6; addr6.sin6_family = AF_INET6;
addr6.sin6_port = htons(port); addr6.sin6_port = htons(port);
addr6.sin6_scope_id = if_nametoindex(iface.getName().c_str()); if (addr.toText() != "::1")
addr6.sin6_scope_id = if_nametoindex(iface.getName().c_str());
memcpy(&addr6.sin6_addr, memcpy(&addr6.sin6_addr,
addr.getAddress().to_v6().to_bytes().data(), addr.getAddress().to_v6().to_bytes().data(),
......
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