Skip to content

Commit 85f09aa

Browse files
committed
Merge zmq_ipc_uri_compat
2 parents cbd3aa5 + b8720f8 commit 85f09aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/init.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1462,7 +1462,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
14621462
if (!SplitHostPort(socket_addr, port_out, host_out)) {
14631463
#ifdef HAVE_SOCKADDR_UN
14641464
// Allow unix domain sockets for some options e.g. unix:/some/file/path
1465-
if (!unix || socket_addr.find(ADDR_PREFIX_UNIX) != 0) {
1465+
if (!unix || (socket_addr.find(ADDR_PREFIX_UNIX) != 0 && socket_addr.rfind("ipc:", 0) != 0)) {
14661466
return InitError(InvalidPortErrMsg(arg, socket_addr));
14671467
}
14681468
#else

0 commit comments

Comments
 (0)