We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea9e64f commit df27ee9Copy full SHA for df27ee9
src/ipc/process.cpp
@@ -72,7 +72,7 @@ static bool ParseAddress(std::string& address,
72
struct sockaddr_un& addr,
73
std::string& error)
74
{
75
- if (address.compare(0, 4, "unix") == 0 && (address.size() == 4 || address[4] == ':')) {
+ if (address == "unix" || address.starts_with("unix:")) {
76
fs::path path;
77
if (address.size() <= 5) {
78
path = data_dir / fs::PathFromString(strprintf("%s.sock", RemovePrefixView(dest_exe_name, "bitcoin-")));
0 commit comments