為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Firefox and proxy settings that changes during a session

  • 4 回覆
  • 6 有這個問題
  • 1 次檢視
  • 最近回覆由 cor-el

more options

I have a corporate laptop that needs to use a corporate proxy when connected via VPN or physically to the corporate network. Obviously, there is no proxy when it is connected to my home network directly.

I've written a proxy autoconfiguration script that can detect which network I'm on and configure the proxy accordingly. The problem is that Firefox only runs it once. It does not do so when later the network settings change, i.e. when I connect via VNP.

Firefox automatic detection fails also.

Any suggestions ?

I have a corporate laptop that needs to use a corporate proxy when connected via VPN or physically to the corporate network. Obviously, there is no proxy when it is connected to my home network directly. I've written a proxy autoconfiguration script that can detect which network I'm on and configure the proxy accordingly. The problem is that Firefox only runs it once. It does not do so when later the network settings change, i.e. when I connect via VNP. Firefox automatic detection fails also. Any suggestions ?

所有回覆 (4)

more options

Maybe this extension helps:

more options

Doesn't really solve my problem. Foxyproxy allows to define different proxy configuration for different URLs, while I need different configurations when I'm connected via different networks. In fact, javascript in the proxy autoconfiguration file is perfectly capable of doing this - all I need is a way to tell Firefox to reload it when network settings change.

more options

Even "reload pac" option does not really work - Firefox only reloads it after some connection times out.

At the same time IE manages to work correctly

more options

Did you try the Reload button in Tools > Options > Advanced > Network: Connection > Settings ?

You can also reload the PAC file with the Prefbar extension and the Reload PAC button.