mirror of
https://github.com/zero-peak/ZeroOmega.git
synced 2025-01-22 15:08:12 -05:00
Do not set proxyDNS for SOCKS4 servers. Fix #1548.
This commit is contained in:
parent
36f026d954
commit
bd06fac3b3
@ -72,10 +72,15 @@ class ListenerProxyImpl extends ProxyImpl
|
|||||||
# HTTP proxy auth must be handled via webRequest.onAuthRequired.
|
# HTTP proxy auth must be handled via webRequest.onAuthRequired.
|
||||||
proxyInfo.username = auth.username
|
proxyInfo.username = auth.username
|
||||||
proxyInfo.password = auth.password
|
proxyInfo.password = auth.password
|
||||||
if proxyInfo.type == 'socks' or proxyInfo.type == 'socks4'
|
if proxyInfo.type == 'socks'
|
||||||
# Enable SOCKS remote DNS.
|
# Enable SOCKS remote DNS.
|
||||||
# TODO(catus): Maybe allow the users to configure this?
|
# TODO(catus): Maybe allow the users to configure this?
|
||||||
proxyInfo.proxyDNS = true
|
proxyInfo.proxyDNS = true
|
||||||
|
|
||||||
|
# TODO(catus): Maybe allow proxyDNS for socks4? Server may support SOCKS4a.
|
||||||
|
# It cannot default to true though, since SOCKS4 servers that does not have
|
||||||
|
# the SOCKS4a extension may simply refuse to work.
|
||||||
|
|
||||||
return [proxyInfo]
|
return [proxyInfo]
|
||||||
|
|
||||||
module.exports = ListenerProxyImpl
|
module.exports = ListenerProxyImpl
|
||||||
|
Loading…
Reference in New Issue
Block a user