Commit 51be4eb
authored
fix(dns): refuse a --proxy host name instead of NODATA'ing every live name (#298)
A host name like `localhost` passes proxyReachable() (connect resolves it)
but isIP() cannot place it in an A/AAAA answer, so proxyAddress ends up
{v4:null, v6:null}. The mode then prints "proxying every live name ..." and
answers every live name with NODATA — the exact silent outage the
reachability gate exists to refuse. Reject a non-IP --proxy host up front
with a clear message, before any probe, for the same reason the gate does.
Adds a regression test (fails before / passes after).
Co-authored-by: clawedassistant26 <307253840+clawedassistant26@users.noreply.github.com>1 parent 29c8f34 commit 51be4eb
2 files changed
Lines changed: 36 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2231 | 2231 | | |
2232 | 2232 | | |
2233 | 2233 | | |
| 2234 | + | |
| 2235 | + | |
| 2236 | + | |
| 2237 | + | |
| 2238 | + | |
| 2239 | + | |
| 2240 | + | |
| 2241 | + | |
| 2242 | + | |
| 2243 | + | |
| 2244 | + | |
2234 | 2245 | | |
2235 | 2246 | | |
2236 | 2247 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
0 commit comments