aboutsummaryrefslogtreecommitdiff
path: root/src/or/dns.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2012-10-02 21:03:01 -0400
committerRoger Dingledine <arma@torproject.org>2012-10-02 21:03:01 -0400
commit65e85dba1be1c7ea6be0dca7e7e6bd7257d179c3 (patch)
tree10f066a07ef74c04130cf0d016e06116a90833c1 /src/or/dns.c
parent0ca47825a795e746ce32eff6a0aea3374771eb0f (diff)
downloadtor-65e85dba1be1c7ea6be0dca7e7e6bd7257d179c3.tar.gz
tor-65e85dba1be1c7ea6be0dca7e7e6bd7257d179c3.zip
reformat; no actual changes
Diffstat (limited to 'src/or/dns.c')
-rw-r--r--src/or/dns.c24
1 files changed, 11 insertions, 13 deletions
diff --git a/src/or/dns.c b/src/or/dns.c
index cacce4e022..5f8591383c 100644
--- a/src/or/dns.c
+++ b/src/or/dns.c
@@ -1211,19 +1211,17 @@ configure_nameservers(int force)
#ifdef HAVE_EVDNS_SET_DEFAULT_OUTGOING_BIND_ADDRESS
if (! tor_addr_is_null(&options->_OutboundBindAddressIPv4)) {
- if (1) {
- int socklen;
- struct sockaddr_storage ss;
- socklen = tor_addr_to_sockaddr(&options->_OutboundBindAddressIPv4, 0,
- (struct sockaddr *)&ss, sizeof(ss));
- if (socklen <= 0) {
- log_warn(LD_BUG, "Couldn't convert outbound bind address to sockaddr."
- " Ignoring.");
- } else {
- evdns_base_set_default_outgoing_bind_address(the_evdns_base,
- (struct sockaddr *)&ss,
- socklen);
- }
+ int socklen;
+ struct sockaddr_storage ss;
+ socklen = tor_addr_to_sockaddr(&options->_OutboundBindAddressIPv4, 0,
+ (struct sockaddr *)&ss, sizeof(ss));
+ if (socklen <= 0) {
+ log_warn(LD_BUG, "Couldn't convert outbound bind address to sockaddr."
+ " Ignoring.");
+ } else {
+ evdns_base_set_default_outgoing_bind_address(the_evdns_base,
+ (struct sockaddr *)&ss,
+ socklen);
}
}
#endif