Automatic proxy configuration
Description
I am required to use automatic proxy configuration. When I install the Proxy Helper tool and the application starts, it overrides the current system proxy settings as expected. However, when I stop the application, it does not fully revert the changes, leaving the automatic proxy configuration on but with an empty URL.
Steps to Reproduce
- Enable Automatic proxy configuration in the settings.
- Install Proxy Helper tool
- Run the app
- Check the Automatic proxy configuration is disabled.
- Stop the app
- Check the Automatic proxy configuration is enabled, but URL is empty.
Current Behavior
Automatic proxy configuration is empty when stopping the app.
Expected Behavior
Automatic proxy configuration is restored to the previous state with provided URL.
Environment
- App version: e.g Proxyman 5.3.0
- macOS version: Sequoia 15.0.1
Can you try to enable the "Auto Restore HTTP Proxy Setting when closing" in the Settings -> Advance Tab ?
By default, Proxyman won't restore your previous state until it's enabled.
Can you try to enable the "Auto Restore HTTP Proxy Setting when closing" in the Settings -> Advance Tab ? By default, Proxyman won't restore your previous state until it's enabled.
It is enabled, that's why it restores the toggle state, but the URL string becomes empty.
thanks, let me check, it could be a bug
Sure. @NghiaTranUIT, any updates?
not yet, but I will fix it in next release 👍
@enzosterro can you try with the latest build v5.10.0?
I tested and the PAC URL are still restored when closing Proxyman app. See the demo video.
https://github.com/user-attachments/assets/7776247e-0a0f-46b6-ba05-0e9073146a60
- May I ask: You're using WiFi or different Internet connection?
Hi @NghiaTranUIT, I tried it on the latest 5.10.0 and got the same result. When I close the app, the URL gets empty.
I'm using Wi-Fi and the URL is in the format http://10.0.0.10/pac.
Here's a screenshot when I quit the app by pressing ⌘Q.
Thanks, it's a bug from Apple too. Please see the video: I just turned off and turned on the PAC file, and no Proxyman is involved -> The URL is cleared.
https://github.com/user-attachments/assets/af796e88-a44d-4b03-99da-6409c9d98b8c
I've checked the code from Proxyman, it doesn't override the PAC URL, it only overrides the Toggle -> Apple Bug -> PAC URL is empty.
To fix it, I will capture the PAC URL and manually override it when Proxyman is closed
@NghiaTranUIT, thanks a bunch! Do you have an estimate of when the fix will be ready?
@enzosterro let's try this build: https://download.proxyman.io/beta/Proxyman_5.10.0_Fix_PAC_URL_could_not_be_restored_with_Helper_Tool.dmg
- Make sure to install Proxyman Helper Tool v1.7.0 at launch -> Then closing the app (CMD+Q)
- Set your PAC in WiFi Setting -> Open Proxyman -> Close app -> Verify PAC URL is correct
It works now. Thanks! 🙏