mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-08-04 05:54:48 +02:00
Merge remote-tracking branch 'origin-pull/28020/head' into HEAD
This commit is contained in:
commit
fd5c5cfe7d
@ -1261,7 +1261,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
|
|||||||
for (const std::string& socket_addr : args.GetArgs(port_option)) {
|
for (const std::string& socket_addr : args.GetArgs(port_option)) {
|
||||||
std::string host_out;
|
std::string host_out;
|
||||||
uint16_t port_out{0};
|
uint16_t port_out{0};
|
||||||
if (!SplitHostPort(socket_addr, port_out, host_out)) {
|
if (socket_addr.rfind("ipc:", 0) != 0 && !SplitHostPort(socket_addr, port_out, host_out)) {
|
||||||
return InitError(InvalidPortErrMsg(port_option, socket_addr));
|
return InitError(InvalidPortErrMsg(port_option, socket_addr));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user