Commit 9ca0d3f
Don't use DNS resolution when finding local ip addresses.
Removes use of DNS to find local ip addresses to bind to, except on
Windows. Also removes mistaken "Ignore loopback addresses" logic,
which happened to get its conditional flipped the wrong way.
The flipped "Ignore loopback addresses" logic meant that we would
remove all non-loopback addresses that got returned by the DNS lookup.
So removing the DNS lookup entirely won't break things.
The behavior on Windows never used getifaddrs, it just used DNS
lookup. We keep the old behavior on Windows because limited manpower
prevents us from using the Windows alternative to getifaddrs.
Fixes #4600.
Co-authored-by: Sam Hughes <[email protected]>1 parent a8bb2e9 commit 9ca0d3f
File tree
3 files changed
+10
-20
lines changed- src
- arch
- clustering/administration/main
3 files changed
+10
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
159 | | - | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
160 | 162 | | |
161 | 163 | | |
162 | 164 | | |
163 | 165 | | |
164 | 166 | | |
165 | 167 | | |
166 | | - | |
167 | 168 | | |
168 | 169 | | |
169 | 170 | | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | 171 | | |
181 | 172 | | |
182 | 173 | | |
| |||
195 | 186 | | |
196 | 187 | | |
197 | 188 | | |
| 189 | + | |
198 | 190 | | |
199 | 191 | | |
200 | 192 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
78 | | - | |
| 77 | + | |
79 | 78 | | |
80 | 79 | | |
81 | 80 | | |
| |||
611 | 610 | | |
612 | 611 | | |
613 | 612 | | |
614 | | - | |
| 613 | + | |
615 | 614 | | |
616 | 615 | | |
617 | 616 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
84 | | - | |
| 83 | + | |
85 | 84 | | |
86 | | - | |
| 85 | + | |
87 | 86 | | |
88 | 87 | | |
89 | 88 | | |
| |||
0 commit comments