Reject multicast rendezvous point addresses

Unless ExtendAllowPrivateAddresses is 1.
This commit is contained in:
teor (Tim Wilson-Brown)
2016-02-02 13:32:54 +11:00
parent 4a7964b3bc
commit b0ca80c23f
+1 -1
View File
@@ -2409,7 +2409,7 @@ int extend_info_addr_is_allowed(const tor_addr_t *addr)
tor_assert(addr);
/* Check if we have a private address and if we can extend to it. */
if (tor_addr_is_internal(addr, 0) &&
if ((tor_addr_is_internal(addr, 0) || tor_addr_is_multicast(addr)) &&
!get_options()->ExtendAllowPrivateAddresses) {
goto disallow;
}