diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-02-26 07:27:42 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-02-26 07:27:42 -0500 |
commit | 35257a1c6988797c0382f9f77a7309510e978e37 (patch) | |
tree | 891baacf6ffae1433940fc90463bf85e327474de /src/app/config/config.c | |
parent | 1bff5646e64a32b83dcf5ac5acf4e31b98382aae (diff) | |
parent | 1b9e77349ffbe813c7b16af67c069d967327f63b (diff) | |
download | tor-35257a1c6988797c0382f9f77a7309510e978e37.tar.gz tor-35257a1c6988797c0382f9f77a7309510e978e37.zip |
Merge remote-tracking branch 'tor-github/pr/726' into maint-0.4.0
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 7734c19a04..8e0bfbe797 100644 --- a/src/app/config/config.c +++ b/src/app/config/config.c @@ -7038,13 +7038,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; } |