"Use system proxy settings" uses SOCKSv4
Categories
(Core :: Networking, defect, P2)
Tracking
()
People
(Reporter: me+bugzilla, Unassigned)
References
Details
(Whiteboard: [necko-triaged])
| Reporter | ||
Comment 1•7 years ago
|
||
| Reporter | ||
Comment 2•7 years ago
|
||
Updated•7 years ago
|
Comment 3•7 years ago
|
||
Comment 4•7 years ago
|
||
Comment 5•7 years ago
|
||
| Reporter | ||
Comment 6•7 years ago
|
||
Comment 7•7 years ago
|
||
Updated•6 years ago
|
Updated•5 years ago
|
Comment 11•5 years ago
|
||
(In reply to Ryan McCue from comment #6)
IMO, returning
SOCKS5 ...; SOCKS ...is the best solution, although
potentially flipping the order would be better for backwards compatibility
with users expecting that v4 will be used.
I did a quick test and when both SOCKS versions are returned at https://searchfox.org/mozilla-central/rev/96f1457323cc598a36f5701f8e67aedaf97acfcf/toolkit/system/unixproxy/nsUnixSystemProxySettings.cpp#369 the second proxyInfo is available as mProxyInfo->mNext at https://searchfox.org/mozilla-central/rev/96f1457323cc598a36f5701f8e67aedaf97acfcf/netwerk/base/nsSocketTransport2.cpp#1180, but AFAICS there is no way how to get the info using nsIProxyInfo interface.
Dragana, is the right solution to this bug to expose the whole list of proxyInfos via nsIProxyInfo and try to use next proxyInfo in nsSocketTransport::RecoverFromError() when proxy returns an error?
Updated•5 years ago
|
Comment 12•5 years ago
|
||
(In reply to Michal Novotny [:michal] from comment #11)
(In reply to Ryan McCue from comment #6)
IMO, returning
SOCKS5 ...; SOCKS ...is the best solution, although
potentially flipping the order would be better for backwards compatibility
with users expecting that v4 will be used.I did a quick test and when both SOCKS versions are returned at https://searchfox.org/mozilla-central/rev/96f1457323cc598a36f5701f8e67aedaf97acfcf/toolkit/system/unixproxy/nsUnixSystemProxySettings.cpp#369 the second proxyInfo is available as mProxyInfo->mNext at https://searchfox.org/mozilla-central/rev/96f1457323cc598a36f5701f8e67aedaf97acfcf/netwerk/base/nsSocketTransport2.cpp#1180, but AFAICS there is no way how to get the info using nsIProxyInfo interface.
Dragana, is the right solution to this bug to expose the whole list of proxyInfos via nsIProxyInfo and try to use next proxyInfo in nsSocketTransport::RecoverFromError() when proxy returns an error?
This is specific to SOCKS proxy. We can expose mProxyInfo->mNext in nsIProxyInfo, but do a fallback only for SOCKS proxies (thinking of it we probably do not have a fallback for other proxies).
We will need to remember that a socks proxy version does not work so that we do not need to do fallbacks all the time, maybe remember that in nsSocketTransportService. But we need to clear the info if other version fails as well. I think it is fine to keep the info for a session.
Comment 13•4 years ago
|
||
Any update?
Comment 14•4 years ago
|
||
Description
•