diff --git a/components/livestatus/livestatuslistener.cpp b/components/livestatus/livestatuslistener.cpp index f230fb349..857a23489 100644 --- a/components/livestatus/livestatuslistener.cpp +++ b/components/livestatus/livestatuslistener.cpp @@ -70,7 +70,7 @@ void LivestatusListener::Start(void) if (GetSocketType() == "tcp") { TcpSocket::Ptr socket = make_shared(); - socket->Bind(GetBindHost(), GetBindPort(), AF_INET); + socket->Bind(GetBindHost(), GetBindPort(), AF_UNSPEC); boost::thread thread(boost::bind(&LivestatusListener::ServerThreadProc, this, socket)); thread.detach(); diff --git a/lib/remote/apilistener.cpp b/lib/remote/apilistener.cpp index 0e2ba7c80..ff11fa9f8 100644 --- a/lib/remote/apilistener.cpp +++ b/lib/remote/apilistener.cpp @@ -136,7 +136,7 @@ void ApiListener::AddListener(const String& service) Log(LogInformation, "ApiListener", s.str()); TcpSocket::Ptr server = make_shared(); - server->Bind(service, AF_INET6); + server->Bind(service, AF_UNSPEC); boost::thread thread(boost::bind(&ApiListener::ListenerThreadProc, this, server)); thread.detach();