if (GetSocketType() == "tcp") {
TcpSocket::Ptr socket = make_shared<TcpSocket>();
- socket->Bind(GetBindHost(), GetBindPort(), AF_INET);
+ socket->Bind(GetBindHost(), GetBindPort(), AF_UNSPEC);
boost::thread thread(boost::bind(&LivestatusListener::ServerThreadProc, this, socket));
thread.detach();
Log(LogInformation, "ApiListener", s.str());
TcpSocket::Ptr server = make_shared<TcpSocket>();
- server->Bind(service, AF_INET6);
+ server->Bind(service, AF_UNSPEC);
boost::thread thread(boost::bind(&ApiListener::ListenerThreadProc, this, server));
thread.detach();