Repository navigation
fix(gateway): keep explicit loopback binds on 127.0.0.1 - #65635
neeravmakwana wants to merge 1 commit into
Conversation
Greptile SummaryThis PR fixes a regression where Confidence Score: 5/5Safe to merge — the change is narrowly scoped to the loopback path, is covered by a new regression test, and has no security implications. Only a P2 stale-comment finding; no logic, security, or correctness issues found. No files require special attention. Prompt To Fix All With AIThis is a comment left during a code review.
Path: src/gateway/net.ts
Line: 290
Comment:
**Stale JSDoc comment**
The comment on the `loopback` entry still reads `(rarely fails, but handled gracefully)`, which described the old probe-with-fallback behaviour. Now that the loopback path unconditionally returns `127.0.0.1`, the parenthetical is inaccurate.
```suggestion
* - loopback: 127.0.0.1 (always; probe is skipped for explicit loopback)
```
How can I resolve this? If you propose a fix, please make it concise.Reviews (2): Last reviewed commit: "fix(gateway): keep explicit loopback bin..." | Re-trigger Greptile |
|
@codex review |
|
Codex Review: Didn't find any major issues. What shall we delve into next? ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Summary
gateway.bind=loopbackpinned to127.0.0.1instead of downgrading to0.0.0.0after a failed preflight loopback probeTest plan
pnpm test src/gateway/net.test.ts -t "resolveGatewayBindHost"pnpm test src/gateway/server-runtime-config.test.ts -t "loopback binding that resolves to non-loopback host|respects explicit loopback config even inside a container"src/gateway/net.ts,src/gateway/net.test.ts, andCHANGELOG.mdNotes
Made with Cursor