Commit 10b34f0
committed
Address review: gate socks auth to socks5, disable pconn for SOCKS peers
- generate.php: only emit socks-user/socks-pass for socks5 entries.
The Squid patch rejects these options on socks4, so a socks4 line
with credentials would break config parsing.
- patch_apply.sh: set request->flags.proxyKeepalive=false on SOCKS
peer requests in both FwdState::dispatch() and TunnelStateData::
connectDone(). Without this, the pconn pool (keyed by peer address,
not target) could hand a SOCKS-negotiated connection to a request
for a different target, silently routing data to the wrong host.
https://claude.ai/code/session_01Cz4tkSZKDhTPnBx8YsYoyg1 parent be2343b commit 10b34f0
2 files changed
Lines changed: 20 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
85 | 88 | | |
86 | 89 | | |
87 | 90 | | |
88 | 91 | | |
89 | 92 | | |
| 93 | + | |
| 94 | + | |
90 | 95 | | |
91 | 96 | | |
92 | 97 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
213 | 222 | | |
214 | 223 | | |
215 | 224 | | |
| |||
290 | 299 | | |
291 | 300 | | |
292 | 301 | | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
293 | 307 | | |
294 | 308 | | |
295 | 309 | | |
| |||
0 commit comments