mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-17 21:10:54 +00:00
fix(security): resolve local auth for gateway probe
This commit is contained in:
@@ -538,7 +538,7 @@ async function maybeProbeGateway(params: {
|
||||
return { token, password };
|
||||
};
|
||||
|
||||
const auth = remoteUrlMissing ? resolveAuth("local") : resolveAuth("remote");
|
||||
const auth = !isRemoteMode || remoteUrlMissing ? resolveAuth("local") : resolveAuth("remote");
|
||||
const res = await params.probe({ url, auth, timeoutMs: params.timeoutMs }).catch((err) => ({
|
||||
ok: false,
|
||||
url,
|
||||
|
||||
Reference in New Issue
Block a user