samuong / alpaca

A local HTTP proxy for command-line tools. Supports PAC scripts and NTLM authentication.
Apache License 2.0
184 stars 31 forks source link

failed to parse the pac file and obtain the proxy #92

Closed xueliang closed 2 years ago

xueliang commented 2 years ago

The pac works in my chrome, but in alpaca, the log shows that :

proxyfinder.go:128: [1] Couldn't parse proxy: "HTTPS ssl-xxxxxx.yyyyy.com:3389"

Is there anything wrong? Thanks.

samuong commented 2 years ago

The original return value format from Netscape for PAC scripts only supported values that started with DIRECT or PROXY (or SOCKS, which Alpaca doesn't support). Newer versions of Firefox, as well as other browsers like Chrome, later added HTTP and HTTPS.

Alpaca was written against the older standard, and only supports DIRECT and PROXY. But it's easy enough to add HTTP and HTTPS, which should fix your problem.