Skip to content

Commit be5ba1b

Browse files
JayBitronluke-jr
authored andcommitted
exclude ipc scheme port check
1 parent 8cb6ab0 commit be5ba1b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/init.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1206,7 +1206,7 @@ bool CheckHostPortOptions(const ArgsManager& args) {
12061206
if (!SplitHostPort(socket_addr, port_out, host_out)) {
12071207
#ifdef HAVE_SOCKADDR_UN
12081208
// Allow unix domain sockets for some options e.g. unix:/some/file/path
1209-
if (!unix || !socket_addr.starts_with(ADDR_PREFIX_UNIX)) {
1209+
if (!unix || (!socket_addr.starts_with(ADDR_PREFIX_UNIX) && socket_addr.rfind("ipc:", 0) != 0)) {
12101210
return InitError(InvalidPortErrMsg(arg, socket_addr));
12111211
}
12121212
#else

0 commit comments

Comments
 (0)