mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-01 08:03:31 +01:00
Refrain from needless SOCKS5 warning
This commit is contained in:
parent
1763aa058b
commit
9e2f780923
4
changes/bug22461
Normal file
4
changes/bug22461
Normal 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.
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user