mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-25 18:22:59 +02:00
SocketAddress: constructor taking single string now also accepts a local socket path on UNIX platforms
This commit is contained in:
@@ -285,6 +285,14 @@ void SocketAddress::init(const std::string& hostAndPort)
|
||||
std::string port;
|
||||
std::string::const_iterator it = hostAndPort.begin();
|
||||
std::string::const_iterator end = hostAndPort.end();
|
||||
|
||||
#if defined(POCO_OS_FAMILY_UNIX)
|
||||
if (*it == '/')
|
||||
{
|
||||
newLocal(hostAndPort);
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
if (*it == '[')
|
||||
{
|
||||
++it;
|
||||
|
||||
Reference in New Issue
Block a user