Commit graph

116 commits

Author SHA1 Message Date
37fae8a116 Config manager now ensures configs, as I transition away from connection_enable having all responsibility. Also updating locations now triggers respawn 2026-11-08 15:20:21 -05:00
87cc90ffb1 Transition to using protocol enums and the protocol attribute in profiles, and away from connection.code 2026-11-07 12:35:02 -05:00
ffd1080d03 Transitioned Delete functionality to the model's data service (away from the model itself). And setup destroy service to be run as a background thread, which means disable separately 2026-11-06 21:05:35 -05:00
788c9f8cc4 Name change for a service folder. Renamed keys_and_verifications to config_tools. Renamed module wireguard_keys to wireguard_configs. 2026-11-06 20:04:20 -05:00
71e7dc5cb1 Cross-protocol Firewall kill made easier to access 2026-11-05 18:17:37 -05:00
02cc80b152 Creation of Profile objects now happens in core, instead of GUI 2026-11-05 11:19:40 -05:00
728a6bd51c Improved error handling for SudoScript 2026-11-03 16:55:25 -05:00
b073ce2fa5 tweak, increase timeout for async 2026-11-02 14:57:58 -05:00
7390939291 Introduced an Error Checking loop for Session networking, similar to what is already implemented in Systemwide, with the same ConnectionRecovery dataclass module. But most of these steps/functions have been moved from being in systemwide wireguard itself, to isolated modules (that session's network loop now calls upon). The reason for this change, is so that in a future transition, systemwide can refactor to re-using them also. On a different note, for ip checking, now asyncio is used for session profiles with a proxy port. While threading and multi-process que is used for systemwide profiles. 2026-11-02 14:27:40 -05:00
62d2d15858 Transition to the same tests for wireguard systemwide as for session 2026-11-02 08:32:05 -05:00
9ade83b454 Moving threading setup to inside the function, to avoid threads at the same time locking up the connection test 2026-11-02 08:31:01 -05:00
df751949a4 Increase the timeouts 2026-11-01 19:54:31 -05:00
039c162976 Moved global state coordinator functions to a dedicated controller, so that the coordinator isn't circular imported when it doesn't need to be. The underlying functions are not even used in the coordinator, so the original reasons for having them there are no longer relevant 2026-11-01 18:44:59 -05:00
da7d912a0c Tor profile cleanup and error handling. Moved more functions out of ConnectionController 2026-11-01 17:42:48 -05:00
257bb952f7 Session wireguard profiles switched over to the new state management system 2026-11-01 16:46:27 -05:00
57206dde46 Singbox dependency check in the launcher, forwards to GUI error handler to coordinate setup 2026-10-30 08:55:02 -04:00
0b065fb025 Solved a bug with connections after ticket use, which previously had a threading issue on reconnect. That threading bug had the reconnect hit up wireguard key renegotiation multiple times, causing a subscription error on one of those threads. Now instead, session profiles are still started via a background thread, but when closed via the external X11 window, they trigger a notification to the main UI with @mainthread to disconnect it. This is a temporary workaround to the pre-existing issues with SessionState process management, until that SessionState module can be refactored. 2026-10-29 10:17:38 -04:00
9022c1ff05 Only use controller to modify system state, never the model directly, because it bypasses the repo 2026-10-27 17:08:14 -04:00
295f34c8f9 Plumbing and wireguard loop fixed, via using the controller only to modify systemstate, and fixing a bug in the plumbing for the 'no option' functions being run without execute 2026-10-27 17:05:20 -04:00
e73512770c State Repo is the one to flip on systemwide UI. Which forces state to match visuals 2026-10-27 09:33:17 -04:00
b6275269b5 Result Error Chain Ledger 2026-10-26 21:37:28 -04:00
958c906f30 Respawn ticket use working 2026-10-26 18:45:01 -04:00
f53661fc60 Improved Systemwide Wireguard Error Flow, to cache each stage of progress to the end of the loop, and prompt the user on each choice. 2026-10-25 20:55:19 -04:00
14e257d091 systemwide wg goes connect -> test -> location check -> mtu check -> port check -> wg renegotiate 2026-10-25 14:25:09 -04:00
25d69d728c Plumbing switched to regular thread (not executor). Introduced Port checking and changing as part of wireguard failure 2026-10-25 09:35:50 -04:00
d7f953b907 Improved UI feedback on connections, sync, and use of tickets. 2026-10-24 16:22:52 -04:00
c4a3e6c948 Improved UI feedback on connections. And new plumbing UI data structure and prompts for stacktrace errors 2026-10-24 13:13:06 -04:00
00ef301baf Relying on end_singbox now, instead of a dedicated helper for mini-takedown 2026-10-22 21:50:43 -04:00
8a72ae76fd Fixed a bug in teardown of failed attempt, to properly kill firewall 2026-10-22 21:49:24 -04:00
b68d1ea6bd removal of unused importS 2026-10-22 16:00:44 -04:00
19e8a34730 Move singbox launch to isolated module. And refactor the runner to use smaller helper functions. 2026-10-22 15:27:38 -04:00
587c72f4c3 async ip address calls 2026-10-22 13:37:27 -04:00
2208cedb7e Introduced Location & MTU testing on systemwide Wireguard. As well as IP address testing instead of the previous method. Additionally, 400 status APIs now pass through the APIResponse layer as True to be evaluated by the SeverReply Layer. Finally notifications are better integrated to convey the testing rounds to the end user. 2026-10-21 13:37:21 -04:00
ed517f4568 Direct httpx2 IP address checking, instead of subprocess for connection tests. 2026-10-19 21:36:22 -04:00
840c2ccb58 Improved State Management integrated with the UI upgrades, to evaluate failed zombie systemwide connections. And then prompt the user if they'd like to evaluate them for re-use, or close it. 2026-10-19 16:32:43 -04:00
fcace28890 Introduced a Global State Management system, with a repo cache and notifications to the UI. 2026-10-18 21:16:52 -04:00
5dee318aa4 Wireguard now checks if it needs to disable singbox based on systemstate. Also eliminated content from profilecontroller that was no longer being used for subscriptions, and causing circular import issues 2026-10-15 19:30:34 -04:00
0931200c79 Fixing wireguard breaking due to changes in systemwide state from singbox kill checking wireguard first 2026-10-15 19:13:57 -04:00
6107a355f9 Improved singbox cleanup process. And added support for killing wireguard profiles inside end_singbox. 2026-10-15 19:02:47 -04:00
5dc1463862 Singbox on disable, checks if wireguard is active, and kills it 2026-10-15 16:20:44 -04:00
9e4fd54eb6 Introduced MTU tools. MTU set for session configs automatically, for systemwide the testing is setup but not yet implemented. Also introduced server reply objects and a new v2 wg endpoint that doesn't require location codes. 2026-10-11 20:18:52 -04:00
430696b480 Resume Payments for individual profiles stable. Also fixed a bug with errors in filtering invalid replies to getting new wireguard conifgs 2026-10-07 18:33:16 -04:00
9627b1861d Introduced new model: Plan. This differs from the legacy subscriptions because its based on time in months and supports multiple protocols at once in a list enum format 2026-10-03 14:47:38 -04:00
f2922b02a0 Enabled support for editing systemwide profile protocols including vless/hysteria2 2026-10-03 11:39:57 -04:00
80415e2b28 client-side models to match server-side output 2026-10-01 18:24:39 -04:00
77c7123d73 Prepartion of univerisal cross-platform plumbing. And introduction of v2 billing/invoices 2026-09-28 17:30:08 -04:00
d35fc0db4b Bug fixes and tweaks for transitions 2026-09-21 12:35:37 -04:00
fcf469bd03 Manual Explicit Wireguard enable via nmcli for Improved Cross-Linux distro support. 2026-08-24 11:50:34 -04:00
a69b87817c Improved Connection Observer Feedback for all systemwide protocols 2026-08-21 15:31:52 -04:00
07f0cf8007 Cleanup of Legacy code and commented sections 2026-08-20 14:06:28 -04:00