Commit 1dc2068
committed
Document the scope of isLocalHost
Add a short block comment above isLocalHost spelling out what
the function does and does not do: it's a string-equality check
between hostnames, with no DNS resolution and no authority over
the request itself. This mirrors the AGENTS.md convention of
documenting the limits of security-adjacent checks so a future
reader doesn't mistake it for a gatekeeper.
No behavior change.
#484 (comment)
Assisted-by: Claude Code:claude-opus-4-71 parent 1ddd002 commit 1dc2068
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
| |||
0 commit comments