Commit 7508725
Use TEST-NET-1 address for default-route detection in tests
Switch from 10.254.254.254 to 192.0.2.1 (RFC 5737) in the UDP socket
trick used to infer the default-route IP. VPNs commonly push routes
for RFC1918 prefixes (10/8, 172.16/12, 192.168/16), so a 10.0.0.0/8
target can resolve to the VPN tun interface instead of the true
default route. TEST-NET ranges are reserved for documentation and are
very rarely matched by a more-specific route.
No effect in CI (no VPN) but reduces flakiness for developers running
tests on machines with a corporate VPN.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 3f91e5c commit 7508725
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
161 | 165 | | |
162 | 166 | | |
163 | | - | |
| 167 | + | |
164 | 168 | | |
165 | 169 | | |
166 | 170 | | |
| |||
0 commit comments