mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 12:23:32 +01:00
Refrain from listener rebinding when address families differ
This commit is contained in:
parent
df2b46d18c
commit
9bb00a74bc
4
changes/bug27928
Normal file
4
changes/bug27928
Normal file
@ -0,0 +1,4 @@
|
||||
o Minor bugfixes (networking):
|
||||
- Refrain from attempting socket rebinding when old
|
||||
and new listeners are in different address families.
|
||||
Fixes bug 27928; bugfix on 0.3.5.1-alpha.
|
@ -2798,6 +2798,7 @@ retry_listener_ports(smartlist_t *old_conns,
|
||||
}
|
||||
#ifdef ENABLE_LISTENER_REBIND
|
||||
const int may_need_rebind =
|
||||
tor_addr_family(&wanted->addr) == tor_addr_family(&conn->addr) &&
|
||||
port_matches_exact && bool_neq(tor_addr_is_null(&wanted->addr),
|
||||
tor_addr_is_null(&conn->addr));
|
||||
if (replacements && may_need_rebind) {
|
||||
|
Loading…
Reference in New Issue
Block a user