diff options
author | teor <teor@torproject.org> | 2019-04-19 11:51:05 +1000 |
---|---|---|
committer | teor <teor@torproject.org> | 2019-04-19 11:51:05 +1000 |
commit | cb084de5e5dddee69abd55e3f4ed3a5ce9ebc9a2 (patch) | |
tree | 14d209ce09a7b3e0e28ce01b59a78b6a230db5b9 /src/app/config/config.c | |
parent | 2ae67fee4244ff3ea1e9f3345f2cfde48cf64435 (diff) | |
parent | 1b9e77349ffbe813c7b16af67c069d967327f63b (diff) | |
download | tor-cb084de5e5dddee69abd55e3f4ed3a5ce9ebc9a2.tar.gz tor-cb084de5e5dddee69abd55e3f4ed3a5ce9ebc9a2.zip |
Merge remote-tracking branch 'tor-github/pr/726' into maint-0.3.5
Diffstat (limited to 'src/app/config/config.c')
-rw-r--r-- | src/app/config/config.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/app/config/config.c b/src/app/config/config.c index e06c77e439..2a504d3065 100644 --- a/src/app/config/config.c +++ b/src/app/config/config.c @@ -7061,13 +7061,13 @@ parse_port_config(smartlist_t *out, portname, escaped(ports->value)); goto err; } - if (bind_ipv4_only && tor_addr_family(&addr) == AF_INET6) { - log_warn(LD_CONFIG, "Could not interpret %sPort address as IPv6", + if (bind_ipv4_only && tor_addr_family(&addr) != AF_INET) { + log_warn(LD_CONFIG, "Could not interpret %sPort address as IPv4", portname); goto err; } - if (bind_ipv6_only && tor_addr_family(&addr) == AF_INET) { - log_warn(LD_CONFIG, "Could not interpret %sPort address as IPv4", + if (bind_ipv6_only && tor_addr_family(&addr) != AF_INET6) { + log_warn(LD_CONFIG, "Could not interpret %sPort address as IPv6", portname); goto err; } |