Commit 73966ef
fix(website): do not duplicate client IP in x-forwarded-for
Measured on a live pod: x-forwarded-for already reaches the handler with
the client IP as its first entry, so unconditionally prepending it
produced a duplicate. Only seed the header when absent, and always set
x-real-ip, which was the header actually missing.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent ee88a55 commit 73966ef
1 file changed
Lines changed: 8 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
149 | | - | |
150 | | - | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
159 | 160 | | |
160 | 161 | | |
161 | 162 | | |
| |||
0 commit comments