mirror of https://github.com/Icinga/icinga2.git
parent
97168378e8
commit
b78a8b6c77
|
@ -161,7 +161,7 @@ int ReplCommand::Run(const po::variables_map& vm, const std::vector<std::string>
|
||||||
Socket::Ptr socket;
|
Socket::Ptr socket;
|
||||||
|
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
if (addr[0] == '/') {
|
if (addr.FindFirstOf("/") != String::NPos) {
|
||||||
UnixSocket::Ptr usocket = new UnixSocket();
|
UnixSocket::Ptr usocket = new UnixSocket();
|
||||||
usocket->Connect(addr);
|
usocket->Connect(addr);
|
||||||
socket = usocket;
|
socket = usocket;
|
||||||
|
|
Loading…
Reference in New Issue