본 사이트는 여러분의 사용자 경험을 개선하기 위해 유지 보수를 진행하는 동안 기능이 제한됩니다. 도움말로 문제가 해결되지 않고 질문을 하고 싶다면 Twitter의 @FirefoxSupport 및 Reddit의 /r/firefox 채널을 활용하세요.

Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

PAC file not working

  • 3 답장
  • 12 이 문제를 만남
  • 596 보기
  • 최종 답변자: liuqx

more options

The firefox is really a fabulous browser, and I really appreciate the brilliant guys working on it. But here's the problem: the PAC file does not seem to be working. This PAC file contains a list of domains needed by the browser to decide which domain should be accessed directly, which domain should be accessed through the proxy server. I've been using ShadowsocksR ( https://github.com/shadowsocksr-backup/shadowsocksr-csharp ), who serves as a HTTP proxy server on 127.0.0.1:1080 with a PAC file(pac.txt), and it works quite well with IE and Edge. However, with firefox, I can not use this proxy server. I've tried another PAC file, proxy.pac on GitHub: https://github.com/breakwa11/gfw_whitelist , which turns out to work properly on IE and Edge(with the first line changed to: var wall_proxy = "PROXY 127.0.0.1:1080; HTTPS 127.0.0.1:1080; SOCKS5 127.0.0.1:1080 ;";), but again, no luck with firefox. When I set the proxy server to 127.0.0.1:1080 directly in firefox, everything was working as it should. But once the PAC file is involved, firefox cannot use the proxy server anymore. I think there might be some problem when firefox parses the PAC file. Any help? Thanks!

Updated: I also pressed Ctrl+Shift+J yesterday, and it showed the pac file had been installed. But firefox just couldn't use proxy server configured in the pac file. Restarting firefox wouldn't help. I tried another browser, Chrome, and the pac file also worked fine in Chrome.

The firefox is really a fabulous browser, and I really appreciate the brilliant guys working on it. But here's the problem: the PAC file does not seem to be working. This PAC file contains a list of domains needed by the browser to decide which domain should be accessed directly, which domain should be accessed through the proxy server. I've been using ShadowsocksR ( https://github.com/shadowsocksr-backup/shadowsocksr-csharp ), who serves as a HTTP proxy server on 127.0.0.1:1080 with a PAC file(pac.txt), and it works quite well with IE and Edge. However, with firefox, I can not use this proxy server. I've tried another PAC file, proxy.pac on GitHub: https://github.com/breakwa11/gfw_whitelist , which turns out to work properly on IE and Edge(with the first line changed to: var wall_proxy = "PROXY 127.0.0.1:1080; HTTPS 127.0.0.1:1080; SOCKS5 127.0.0.1:1080 ;";), but again, no luck with firefox. When I set the proxy server to 127.0.0.1:1080 directly in firefox, everything was working as it should. But once the PAC file is involved, firefox cannot use the proxy server anymore. I think there might be some problem when firefox parses the PAC file. Any help? Thanks! Updated: I also pressed Ctrl+Shift+J yesterday, and it showed the pac file had been installed. But firefox just couldn't use proxy server configured in the pac file. Restarting firefox wouldn't help. I tried another browser, Chrome, and the pac file also worked fine in Chrome.

글쓴이 liuqx 수정일시

선택된 해결법

Solved this problem by setting network.dns.disableIPv6 to true. I don't consider this as a good solution, because pure IPv6 sites can't be accessed.

My ISP provides both IPv4 and IPv6. Obviously firefox has something wrong with the PAC file when IPv6 is enabled. I'm hoping this bug can get fixed as soon as possible! Every browser I've tried works well except for firefox.

문맥에 따라 이 답변을 읽어주세요 👍 2

모든 댓글 (3)

more options

It should work - I can’t recall not using it, albeit as a locally stored file. If you do, be sure to use the format in the next example however when entering its URL in Firefox on Windows: file:///c://Users/<user>/pac_file_name.pac ...so mind the 3 forward slashes and the required .pac extension.

When entering a http URL for a local file, http:// would be fine but you may need to configure your server for the proper MIME type. See this page for more info.

There are some other caveats though with regard to .pac files, but I don’t think they apply to your issue. For reference:

  1. isInNet() calls can cause hangs in Firefox and should be avoided or replaced (bug 208287).
  2. Microsoft no longer considers file:// URLs to be valid URLs, causing them to not work in IE and other products when used as such, unless a Windows registry change is applied - this is the EnableLegacyAutoProxyFeatures value.

Let us know if this helps.

more options

But today, I restarted my computer and it worked like a charm! I just can't find a plausible explanation to this, how could this have anything to do with my system? I strongly recommend somebody test the pac file. Anyway, thanks! I'm gonna test firefox for another couple of days, in case it has a relapse and restarting my system doesn't work! You know it worries me when some problems get solved by coincidence, haha

글쓴이 liuqx 수정일시

more options

선택된 해결법

Solved this problem by setting network.dns.disableIPv6 to true. I don't consider this as a good solution, because pure IPv6 sites can't be accessed.

My ISP provides both IPv4 and IPv6. Obviously firefox has something wrong with the PAC file when IPv6 is enabled. I'm hoping this bug can get fixed as soon as possible! Every browser I've tried works well except for firefox.