소스 검색

Clarify that ClientRejectInternalAddresses also rejects mDNS *.local hosts

Fixes #17070.
J. Ryan Stinnett 9 년 전
부모
커밋
7ffa95abd9
3개의 변경된 파일8개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 0
      changes/17070
  2. 2 1
      doc/tor.1.txt
  3. 2 1
      src/common/address.c

+ 4 - 0
changes/17070

@@ -0,0 +1,4 @@
+  o Documentation (SOCKS connections):
+    - Clarify that when `ClientRejectInternalAddresses` is enabled (which is the
+      default), multicast DNS hostnames for machines on the local network (of
+      the form *.local) are also rejected.  Closes ticket 17070.

+ 2 - 1
doc/tor.1.txt

@@ -1414,7 +1414,8 @@ The following options are useful only for clients (that is, if
     If true, Tor does not try to fulfill requests to connect to an internal
     If true, Tor does not try to fulfill requests to connect to an internal
     address (like 127.0.0.1 or 192.168.0.1) __unless a exit node is
     address (like 127.0.0.1 or 192.168.0.1) __unless a exit node is
     specifically requested__ (for example, via a .exit hostname, or a
     specifically requested__ (for example, via a .exit hostname, or a
-    controller request).  (Default: 1)
+    controller request).  If true, multicast DNS hostnames for machines on the
+    local network (of the form *.local) are also rejected.  (Default: 1)
 
 
 [[DownloadExtraInfo]] **DownloadExtraInfo** **0**|**1**::
 [[DownloadExtraInfo]] **DownloadExtraInfo** **0**|**1**::
     If true, Tor downloads and caches "extra-info" documents. These documents
     If true, Tor downloads and caches "extra-info" documents. These documents

+ 2 - 1
src/common/address.c

@@ -2100,7 +2100,8 @@ get_interface_address,(int severity, uint32_t *addr))
 }
 }
 
 
 /** Return true if we can tell that <b>name</b> is a canonical name for the
 /** Return true if we can tell that <b>name</b> is a canonical name for the
- * loopback address. */
+ * loopback address.  Return true also for *.local hostnames, which are
+ * multicast DNS names for hosts on the local network. */
 int
 int
 tor_addr_hostname_is_local(const char *name)
 tor_addr_hostname_is_local(const char *name)
 {
 {