Repository navigation
Commit d83b3b4
committed
Force IPv4-first DNS resolution for outbound requests
The GitHub update check was timing out (8s) on a self-hosted box whose resolver
returns no working IPv6 for api.github.com (curl -4 succeeds, curl -6 can't even
resolve). Node's fetch attempted IPv6 and stalled. setDefaultResultOrder('ipv4first')
at startup mirrors 'curl -4' and fixes the check (and any other outbound calls).1 parent a566177 commit d83b3b4
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
11 | 17 | | |
12 | 18 | | |
13 | 19 | | |
| |||
0 commit comments