mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-26 02:53:33 +00:00
fix(infra): make browser relay bind address configurable
Add browser.relayBindHost config option so the Chrome extension relay server can bind to a non-loopback address (e.g. 0.0.0.0 for WSL2). Defaults to 127.0.0.1 when unset, preserving current behavior. Closes #39214 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
committed by
Peter Steinberger
parent
0692f71c6f
commit
436ae8a07c
@@ -16,7 +16,10 @@ export async function ensureExtensionRelayForProfiles(params: {
|
||||
if (!profile || profile.driver !== "extension") {
|
||||
continue;
|
||||
}
|
||||
await ensureChromeExtensionRelayServer({ cdpUrl: profile.cdpUrl }).catch((err) => {
|
||||
await ensureChromeExtensionRelayServer({
|
||||
cdpUrl: profile.cdpUrl,
|
||||
bindHost: params.resolved.relayBindHost,
|
||||
}).catch((err) => {
|
||||
params.onWarn(`Chrome extension relay init failed for profile "${name}": ${String(err)}`);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user