mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 13:13:44 +01:00
When examining interfaces to find an address, discard non-up ones.
Patch from "hantwister" on trac. Fixes bug #9904; bugfix on 0.2.3.11-alpha.
This commit is contained in:
parent
fa1034cd99
commit
b8abadedd3
4
changes/bug9904
Normal file
4
changes/bug9904
Normal file
@ -0,0 +1,4 @@
|
||||
o Minor bugfixes:
|
||||
- When examining list of network interfaces to find our address, do
|
||||
not consider non-running or disabled network interfaces. Fixes bug
|
||||
9904; bugfix on 0.2.3.11-alpha. Patch from "hantwister".
|
@ -1187,6 +1187,8 @@ get_interface_addresses_raw(int severity)
|
||||
result = smartlist_new();
|
||||
for (i = ifa; i; i = i->ifa_next) {
|
||||
tor_addr_t tmp;
|
||||
if ((i->ifa_flags & (IFF_UP | IFF_RUNNING)) != (IFF_UP | IFF_RUNNING))
|
||||
continue;
|
||||
if (!i->ifa_addr)
|
||||
continue;
|
||||
if (i->ifa_addr->sa_family != AF_INET &&
|
||||
|
Loading…
Reference in New Issue
Block a user