Merge 8d000b85dd into merged_master (Bitcoin PR bitcoin/bitcoin#30868)

This commit is contained in:
ivanlele 2026-03-26 10:49:38 +00:00
commit a96e554da4
No known key found for this signature in database
4 changed files with 4 additions and 3 deletions

View file

@ -1509,7 +1509,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
if (!SplitHostPort(socket_addr, port_out, host_out)) {
#ifdef HAVE_SOCKADDR_UN
// Allow unix domain sockets for some options e.g. unix:/some/file/path
if (!unix || socket_addr.find(ADDR_PREFIX_UNIX) != 0) {
if (!unix || !socket_addr.starts_with(ADDR_PREFIX_UNIX)) {
return InitError(InvalidPortErrMsg(arg, socket_addr));
}
#else