Closed Bug 226615 Opened 21 years ago Closed 21 years ago

PAC: cannot specify SOCKS5 proxy

Categories

(Core :: Networking, defect)

defect
Not set
critical

Tracking

()

VERIFIED FIXED
mozilla1.6beta

People

(Reporter: darin.moz, Assigned: darin.moz)

Details

Attachments

(1 file, 1 obsolete file)

The 8tre wrote:

>Hi all,
>
>I'm using Firebird 0.7 on windows.
>I'm using a proxy.pac file containing SOCKS4 and SOCKS5 proxies.
>Something like :
>function FindProxyForURL(url, host)
>{
>   return "SOCKS5 14.147.6.155:3560; SOCKS4 258.165.349.12:2412";
>}
>
>Firebird has no problem using proxies specified as SOCKS4 but when I
>the first proxy in the list is a SOCKS5 one a dialog box shows up
>asking to install PSM.
>
>I found a PSM test page on the web telling me that my PSM version is
>2.4 and that the manager is currently running.
>
>It would be nice if one of you could give some hints on this Problem.
>
>Thanks in advance,
>--
>The 8tre
>

there is code to support SOCKS5, but it appears to be broken.  it looks like we
need to map the PAC result string "SOCKS5" to a necko socket type of just plain
"socks".  currently, we map it to "socks5" which is not registered as a socket type.
Severity: normal → critical
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.6beta
Attached patch v1 patch (obsolete) — Splinter Review
this patch should do the trick.  i still need to verify it though.
Attached patch v1.1 patchSplinter Review
v1 patch works.  this patch fixes a two warnings.
Attachment #136261 - Attachment is obsolete: true
Attachment #137280 - Flags: review?(dougt)
Attachment #137280 - Flags: review?(dougt) → review+
Comment on attachment 137280 [details] [diff] [review]
v1.1 patch

bz: i think this patch is a good candidate for 1.6 final.
Attachment #137280 - Flags: superreview?(bz-vacation)
Comment on attachment 137280 [details] [diff] [review]
v1.1 patch

sr=bzbarsky.  Does that make kProxyType_SOCKS5 unused?	If so, can we kill it
off?
Attachment #137280 - Flags: superreview?(bz-vacation) → superreview+
bz: nope, kProxyType_SOCKS5 is still used.  it is used in ExtractProxyInfo.
Comment on attachment 137280 [details] [diff] [review]
v1.1 patch

i tested this patch against a Dante SOCKS5 proxy w/ a custom PAC file to verify
that i was able to direct mozilla to use my SOCKS5 proxy.

i think this is a safe and good patch for 1.6.
Attachment #137280 - Flags: approval1.6?
Comment on attachment 137280 [details] [diff] [review]
v1.1 patch

a=tor for 1.6 checkin.
Attachment #137280 - Flags: approval1.6? → approval1.6+
Has this been landed yet? It's going to need to get in quickly if it's going to
make the 1.6 branch.
fixed-on-trunk for 1.6 final
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
VERIFIED per Darin's comments.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: