mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Merge remote-tracking branch 'rransom-tor/bug4018'
This commit is contained in:
+3
-2
@@ -5119,12 +5119,13 @@ port_cfg_free(port_cfg_t *port)
|
||||
tor_free(port);
|
||||
}
|
||||
|
||||
/** Warn for every port in <b>ports</b> that is not on a loopback address. */
|
||||
/** Warn for every port in <b>ports</b> that is on a publicly routable
|
||||
* address. */
|
||||
static void
|
||||
warn_nonlocal_client_ports(const smartlist_t *ports, const char *portname)
|
||||
{
|
||||
SMARTLIST_FOREACH_BEGIN(ports, const port_cfg_t *, port) {
|
||||
if (!tor_addr_is_loopback(&port->addr)) {
|
||||
if (!tor_addr_is_internal(&port->addr, 1)) {
|
||||
log_warn(LD_CONFIG, "You specified a public address for %sPort. "
|
||||
"Other people on the Internet might find your computer and "
|
||||
"use it as an open proxy. Please don't allow this unless you "
|
||||
|
||||
Reference in New Issue
Block a user