Proxyman icon indicating copy to clipboard operation
Proxyman copied to clipboard

Automatic proxy configuration

Open enzosterro opened this issue 1 year ago • 3 comments

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

  1. Enable Automatic proxy configuration in the settings.
  2. Install Proxy Helper tool
  3. Run the app
  4. Check the Automatic proxy configuration is disabled.
  5. Stop the app
  6. 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

enzosterro avatar Oct 10 '24 14:10 enzosterro

Can you try to enable the "Auto Restore HTTP Proxy Setting when closing" in the Settings -> Advance Tab ?

Screenshot 2024-10-11 at 09 01 54

By default, Proxyman won't restore your previous state until it's enabled.

NghiaTranUIT avatar Oct 11 '24 02:10 NghiaTranUIT

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.

enzosterro avatar Oct 11 '24 08:10 enzosterro

thanks, let me check, it could be a bug

NghiaTranUIT avatar Oct 11 '24 08:10 NghiaTranUIT

Sure. @NghiaTranUIT, any updates?

enzosterro avatar Nov 11 '24 10:11 enzosterro

not yet, but I will fix it in next release 👍

NghiaTranUIT avatar Nov 11 '24 10:11 NghiaTranUIT

@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?

NghiaTranUIT avatar Nov 14 '24 08:11 NghiaTranUIT

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.

screenshot

enzosterro avatar Nov 14 '24 08:11 enzosterro

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 avatar Nov 14 '24 08:11 NghiaTranUIT

@NghiaTranUIT, thanks a bunch! Do you have an estimate of when the fix will be ready?

enzosterro avatar Nov 14 '24 09:11 enzosterro

@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

NghiaTranUIT avatar Nov 14 '24 09:11 NghiaTranUIT

It works now. Thanks! 🙏

enzosterro avatar Nov 14 '24 11:11 enzosterro