mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 21:55:03 +02:00
parent
a59687312e
commit
24035ab390
@ -70,7 +70,7 @@ void LivestatusListener::Start(void)
|
|||||||
|
|
||||||
if (GetSocketType() == "tcp") {
|
if (GetSocketType() == "tcp") {
|
||||||
TcpSocket::Ptr socket = make_shared<TcpSocket>();
|
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));
|
boost::thread thread(boost::bind(&LivestatusListener::ServerThreadProc, this, socket));
|
||||||
thread.detach();
|
thread.detach();
|
||||||
|
@ -136,7 +136,7 @@ void ApiListener::AddListener(const String& service)
|
|||||||
Log(LogInformation, "ApiListener", s.str());
|
Log(LogInformation, "ApiListener", s.str());
|
||||||
|
|
||||||
TcpSocket::Ptr server = make_shared<TcpSocket>();
|
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));
|
boost::thread thread(boost::bind(&ApiListener::ListenerThreadProc, this, server));
|
||||||
thread.detach();
|
thread.detach();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user