[GH-ISSUE #336] Attempt new solution to revert Proxy when the app is terminated by OS #333

Closed
opened 2026-03-03 19:17:33 +03:00 by kerem · 3 comments
Owner

Originally created by @NghiaTranUIT on GitHub (Nov 22, 2019).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/336

Originally assigned to: @NghiaTranUIT on GitHub.

🐶 Brief

It's possible to handle the Termination message from the OS and quickly revert the Proxy by using applicationShouldTerminate

Ref: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428642-applicationshouldterminate?language=objcc

Let support it 👍

👑 Criteria

  • Terminate the app from CLI or Activity Monitor would revert the Proxy config
Originally created by @NghiaTranUIT on GitHub (Nov 22, 2019). Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/336 Originally assigned to: @NghiaTranUIT on GitHub. ## 🐶 Brief It's possible to handle the Termination message from the OS and quickly revert the Proxy by using `applicationShouldTerminate` Ref: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428642-applicationshouldterminate?language=objcc Let support it 👍 ## 👑 Criteria - [ ] Terminate the app from CLI or Activity Monitor would revert the Proxy config
kerem 2026-03-03 19:17:33 +03:00
Author
Owner

@NghiaTranUIT commented on GitHub (Nov 23, 2019):

Better solution for gracefully reverting back the Proxy Config when the app is crashed, force quit, ...

https://stackoverflow.com/questions/49132097/how-to-detect-force-close-on-mac-os-x-app

<!-- gh-comment-id:557762018 --> @NghiaTranUIT commented on GitHub (Nov 23, 2019): Better solution for gracefully reverting back the Proxy Config when the app is crashed, force quit, ... https://stackoverflow.com/questions/49132097/how-to-detect-force-close-on-mac-os-x-app
Author
Owner

@NghiaTranUIT commented on GitHub (Nov 23, 2019):

All done 👍

<!-- gh-comment-id:557772645 --> @NghiaTranUIT commented on GitHub (Nov 23, 2019): All done 👍
Author
Owner

@NghiaTranUIT commented on GitHub (Nov 24, 2019):

This ticket is invalid and I would revert the change. Thank for the insight from Matt (https://twitter.com/mattie/status/1198202916143869954?s=20)

<!-- gh-comment-id:557849270 --> @NghiaTranUIT commented on GitHub (Nov 24, 2019): This ticket is invalid and I would revert the change. Thank for the insight from Matt (https://twitter.com/mattie/status/1198202916143869954?s=20)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Proxyman#333
No description provided.