mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-20 15:10:46 +02:00
Merge 28020 via origin-pull/28020/head
This commit is contained in:
commit
e0950f80af
@ -1282,7 +1282,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