We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 258d9d3 commit fe04483Copy full SHA for fe04483
1 file changed
src/rpc/request.cpp
@@ -139,7 +139,10 @@ static fs::path GetMainchainAuthCookieFile()
139
if (gArgs.GetChainName() == "liquidv1") {
140
cookie_file = ".cookie";
141
}
142
- return fsbridge::AbsPathJoin(GetMainchainDefaultDataDir(), fs::PathFromString(gArgs.GetArg("-mainchainrpccookiefile", cookie_file)));
+ fs::path cookie_path = fs::PathFromString(gArgs.GetArg("-mainchainrpccookiefile", cookie_file));
143
+ if (cookie_path.is_absolute())
144
+ return cookie_path;
145
+ return fsbridge::AbsPathJoin(GetMainchainDefaultDataDir(), cookie_path);
146
147
148
bool GetMainchainAuthCookie(std::string *cookie_out)
0 commit comments