Explorar o código

let unpublished bridges learn their ip address too

Roger Dingledine %!s(int64=13) %!d(string=hai) anos
pai
achega
0a38358210
Modificáronse 2 ficheiros con 6 adicións e 2 borrados
  1. 5 0
      changes/bug2050
  2. 1 2
      src/or/config.c

+ 5 - 0
changes/bug2050

@@ -0,0 +1,5 @@
+  o Major bugfixes:
+    - Learn our external IP address when we're a relay or bridge, even if
+      we set PublishServerDescriptor to 0. Bugfix on 0.2.0.3-alpha,
+      where we introduced bridge relays that don't need to publish to
+      be useful. Fixes bug 2050.

+ 1 - 2
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