fix(security): resolve local auth for gateway probe

This commit is contained in:
Ivan Pereira
2026-01-16 13:19:55 +00:00
parent 0d6af15d1c
commit be9aa5494a

View File

@@ -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,