Commit 5788feb
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 ed42bdb commit 5788feb
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 | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
155 | | - | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
156 | 158 | | |
157 | 159 | | |
158 | 160 | | |
159 | 161 | | |
160 | 162 | | |
161 | 163 | | |
162 | | - | |
163 | 164 | | |
164 | 165 | | |
165 | 166 | | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | 167 | | |
177 | 168 | | |
178 | 169 | | |
| |||
191 | 182 | | |
192 | 183 | | |
193 | 184 | | |
| 185 | + | |
194 | 186 | | |
195 | 187 | | |
196 | 188 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
81 | | - | |
| 80 | + | |
82 | 81 | | |
83 | 82 | | |
84 | 83 | | |
| |||
630 | 629 | | |
631 | 630 | | |
632 | 631 | | |
633 | | - | |
| 632 | + | |
634 | 633 | | |
635 | 634 | | |
636 | 635 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
83 | | - | |
| 82 | + | |
84 | 83 | | |
85 | | - | |
| 84 | + | |
86 | 85 | | |
87 | 86 | | |
88 | 87 | | |
| |||
0 commit comments