Skip to content

Commit b4cdc8d

Browse files
crh-codeclaude
andcommitted
fix(commands): widen isLocalBaseUrl to full 127.0.0.0/8 range
The status command isLocalBaseUrl only matched exact "127.0.0.1", missing model providers bound to other loopback addresses in the 127/8 range. This affects the openclaw status display. Co-Authored-By: Claude <[email protected]>
1 parent bde5be8 commit b4cdc8d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/commands/models/list.local-url.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export const isLocalBaseUrl = (baseUrl: string) => {
88
const host = normalizeLowercaseStringOrEmpty(url.hostname).replace(/^\[|\]$/g, "");
99
return (
1010
host === "localhost" ||
11-
host === "127.0.0.1" ||
11+
host.startsWith("127.") ||
1212
host === "0.0.0.0" ||
1313
host === "::" ||
1414
host === "::1" ||

0 commit comments

Comments
 (0)