mirror of https://github.com/Icinga/icinga2.git
parent
a59687312e
commit
24035ab390
|
@ -70,7 +70,7 @@ void LivestatusListener::Start(void)
|
|||
|
||||
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();
|
||||
|
|
|
@ -136,7 +136,7 @@ void ApiListener::AddListener(const String& service)
|
|||
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();
|
||||
|
|
Loading…
Reference in New Issue