Review follow-ups: - Run the IPv4 and IPv6 detection in runSNICheck concurrently. With the new three-endpoint fallback in getIP, sequential detection could extend proxy startup by up to 30s per family on a slow/blocked network. Parallel detection bounds the worst case to roughly 30s total instead of 60s. - Make sniCheckResult.OK() self-consistent: it now returns false when the hostname cannot be resolved or no public IP family is known, so callers cannot mistakenly treat 'cannot check' as 'all clear'.pull/474/head
|
|
||
| 3 |
|
3 |
|
| 4 |
|
4 |
|
| 5 |
|
5 |
|
|
6 |
|
|
| 6 |
|
7 |
|
| 7 |
|
8 |
|
| 8 |
|
9 |
|
|
|
||
| 29 |
|
30 |
|
| 30 |
|
31 |
|
| 31 |
|
32 |
|
| 32 |
|
|
|
| 33 |
|
|
|
|
33 |
|
|
|
34 |
|
|
|
35 |
|
|
| 34 |
|
36 |
|
| 35 |
|
|
|
|
37 |
|
|
|
38 |
|
|
|
39 |
|
|
|
40 |
|
|
|
41 |
|
|
|
42 |
|
|
|
43 |
|
|
|
44 |
|
|
|
45 |
|
|
| 36 |
|
46 |
|
| 37 |
|
47 |
|
| 38 |
|
48 |
|
| 39 |
|
49 |
|
| 40 |
|
|
|
|
50 |
|
|
|
51 |
|
|
| 41 |
|
52 |
|
| 42 |
|
53 |
|
| 43 |
|
54 |
|
|
|
||
| 64 |
|
75 |
|
| 65 |
|
76 |
|
| 66 |
|
77 |
|
| 67 |
|
|
|
| 68 |
|
|
|
| 69 |
|
|
|
| 70 |
|
|
|
|
78 |
|
|
| 71 |
|
79 |
|
| 72 |
|
|
|
| 73 |
|
|
|
| 74 |
|
|
|
| 75 |
|
|
|
|
80 |
|
|
|
81 |
|
|
|
82 |
|
|
|
83 |
|
|
|
84 |
|
|
|
85 |
|
|
|
86 |
|
|
|
87 |
|
|
|
88 |
|
|
|
89 |
|
|
|
90 |
|
|
|
91 |
|
|
|
92 |
|
|
|
93 |
|
|
|
94 |
|
|
| 76 |
|
95 |
|
| 77 |
|
96 |
|
| 78 |
|
97 |
|