aboutsummaryrefslogtreecommitdiff
path: root/src/or/config.c
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2011-11-29 11:00:43 +0100
committerNick Mathewson <nickm@torproject.org>2011-11-30 11:55:46 -0500
commit32d10bdfb3a55fe3752f85a7937e1f3f5c7e2c56 (patch)
tree876474c9c79c47d29d00f83e3204185520454bc0 /src/or/config.c
parent39ec781b8fa164dd2b68cec349f2b38d81fa3cbb (diff)
downloadtor-32d10bdfb3a55fe3752f85a7937e1f3f5c7e2c56.tar.gz
tor-32d10bdfb3a55fe3752f85a7937e1f3f5c7e2c56.zip
Whitespace changes.
Diffstat (limited to 'src/or/config.c')
-rw-r--r--src/or/config.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/config.c b/src/or/config.c
index c9320f48fe..40b61872fa 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -5918,11 +5918,11 @@ get_first_advertised_port_by_type_af(int listener_type, int address_family)
if (cfg->type == listener_type &&
!cfg->no_advertise &&
(tor_addr_family(&cfg->addr) == address_family ||
- tor_addr_family(&cfg->addr) == AF_UNSPEC)) {
+ tor_addr_family(&cfg->addr) == AF_UNSPEC)) {
if (tor_addr_family(&cfg->addr) != AF_UNSPEC ||
- (address_family == AF_INET && !cfg->ipv6_only) ||
- (address_family == AF_INET6 && !cfg->ipv4_only)) {
- return cfg->port;
+ (address_family == AF_INET && !cfg->ipv6_only) ||
+ (address_family == AF_INET6 && !cfg->ipv4_only)) {
+ return cfg->port;
}
}
} SMARTLIST_FOREACH_END(cfg);