Refrain from needless SOCKS5 warning

This commit is contained in:
rl1987 2017-06-03 18:04:47 +02:00
parent 1763aa058b
commit 9e2f780923
2 changed files with 4 additions and 2 deletions

4
changes/bug22461 Normal file
View File

@ -0,0 +1,4 @@
o Minor bugfixes:
- Refrain from needlessly warning Tor controller about passing
IP addresses as FQDNs through SOCKS5 interface. Fixes bug
22461, bugfix on Tor 0.2.6.2-alpha.

View File

@ -1686,8 +1686,6 @@ parse_socks(const char *data, size_t datalen, socks_request_t *req,
if (string_is_valid_ipv4_address(req->address) || if (string_is_valid_ipv4_address(req->address) ||
string_is_valid_ipv6_address(req->address)) { string_is_valid_ipv6_address(req->address)) {
log_unsafe_socks_warning(5,req->address,req->port,safe_socks);
if (safe_socks) { if (safe_socks) {
socks_request_set_socks5_error(req, SOCKS5_NOT_ALLOWED); socks_request_set_socks5_error(req, SOCKS5_NOT_ALLOWED);
return -1; return -1;