aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2010-11-11 11:26:42 -0500
committerRoger Dingledine <arma@torproject.org>2010-11-11 11:26:42 -0500
commit0a38358210df95f29fb7cfbb6ce67509b988ab4a (patch)
tree98ff3fed1507a08f5df25d19becdde1badd9f475 /src
parent2a50dd9359ec9bd113c64aa91cb5c2dd875de7dd (diff)
downloadtor-0a38358210df95f29fb7cfbb6ce67509b988ab4a.tar
tor-0a38358210df95f29fb7cfbb6ce67509b988ab4a.tar.gz
let unpublished bridges learn their ip address too
Diffstat (limited to 'src')
-rw-r--r--src/or/config.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/or/config.c b/src/or/config.c
index 796655706..70b99d755 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -2428,8 +2428,7 @@ resolve_my_address(int warn_severity, or_options_t *options,
}
tor_inet_ntoa(&in,tmpbuf,sizeof(tmpbuf));
- if (is_internal_IP(ntohl(in.s_addr), 0) &&
- options->_PublishServerDescriptor) {
+ if (is_internal_IP(ntohl(in.s_addr), 0)) {
/* make sure we're ok with publishing an internal IP */
if (!options->DirServers && !options->AlternateDirAuthority) {
/* if they are using the default dirservers, disallow internal IPs