Commit graph

113 commits

Author SHA1 Message Date
44558fb514 Large changes to the flow for using tickets. More formalized updating of JSON with explicit tools, instead of generic JSON functions. Orchestration returns Return objects, which are then formatted to dict for the GUI. 2026-08-24 15:57:42 -04:00
fcf469bd03 Manual Explicit Wireguard enable via nmcli for Improved Cross-Linux distro support. 2026-08-24 11:50:34 -04:00
39efcaa174 Cython for Miller's Loop Cryptography first introduced, which dramatically reduces verification times. Includes a setup.py option for manual builds if desired. README for manual compile if desired. And a fallback import using the legacy python-only system. 2026-08-22 20:48:22 -04:00
a69b87817c Improved Connection Observer Feedback for all systemwide protocols 2026-08-21 15:31:52 -04:00
8968d89c5c Fallback for AppImage to preloaded YAMLs via pathlib 2026-08-21 12:38:32 -04:00
6d8b457593 Improved error handling and consolidation on ticket purchase flow 2026-08-20 18:00:58 -04:00
e1221d4c45 Renamed do_we_have_billing_id to ticket_config_tools 2026-08-20 17:25:28 -04:00
e18fec84f2 Fixed Repeat 'already have ticket, do you want to wipe?' errors, by actually wiping it before starting over. Not just starting over directly, like before 2026-08-20 17:20:37 -04:00
07f0cf8007 Cleanup of Legacy code and commented sections 2026-08-20 14:06:28 -04:00
fe19044928 Singbox enable now reads the output file to confirm it's up 2026-08-20 14:00:17 -04:00
bdfb933548 Sudo config management. Properly delete the config for protocol changes, and install it using the generic commands module 2026-08-20 12:23:37 -04:00
5923cc8a7f Vless is now working. Config Parsing and setup is stable, and increased the wait time for connection testing. But this is a temporary solution. The real answer is not a static time check, but a dynamic result reading for when to test. Which then has it's own timeout time 2026-08-20 10:18:16 -04:00
c8811c93bb Linter undefined or missing import bugs 2026-08-19 21:40:36 -04:00
24c4648054 Bug-Typo Fix: interface_name changed to interface to match the other singbox module 2026-08-18 13:27:05 -04:00
6dac98835f Assassin mode Introduced! The assassin_tools allows for creation/use of a session profile with random attributes, ephemeral wireguard config, and coordinates using a ticket for it. This tools module also allows for wiping the assassin's ticket & wireguard config on disable. Additionally, this git commit sees ProfileController using these assassin_tools functions for a working implementation if the profile is marked assassin=True. Also the associated eco-system of ApplicationController starting apps, the existing non-ticket legacy subscription handlers, and even GUI needed to be adjusted to allow for this new assassin flow. Finally, the generic JSON utilities have been improved to make this feature more robust and reliable. 2026-08-18 12:54:54 -04:00
a78747e8e5 Bug fix in subscriptions missing re import after the prior isolation transition to the new module 2026-08-15 17:45:06 -04:00
5ab57ab287 When a profile is deleted, it now automatically respawns the ticket if it's a ticket profile. Also fixed some bugs with fetching the server's public key with the APIResponse object being used, when it expected a regular dictionary. This is a left-over from the prior transition to API objects. 2026-08-15 17:34:08 -04:00
31488f790e Introduced Ticket/Billing-Code Respawn, with dual paths on the ticket prep orchestration, it's helper functions, and the main prep controller. This introduced the functions, which were tested with a demo CLI client and local server, and appears to be stable. Server-side endpoints will be pushed as well. Note: This update couples profile slot ids more closely with which ticket slot id is being used for it, but they are not yet officially tied. In the future, they should be. 2026-08-14 19:36:22 -04:00
73c74d339f Improved use of connection observers & fixed a bug in compare versions if it was the same version 2026-08-13 08:09:38 -04:00
1d8c508c52 Isolate connect's bootstrap, so non-connect users can bootstrap when making clients outside connect 2026-08-13 07:59:27 -04:00
d9bee758a8 Isolated download file modules to their own module, then had both the install application versions (browsers), and install dependencies both use that same module. 2026-08-13 07:33:16 -04:00
b5e72ae7f6 More clear variable names and docs on Make HTTPx Client. But it always returned boolean 2026-08-13 06:11:14 -04:00
951802fe5c Improved Singbox Setup Error handling for edge cases 2026-08-12 15:57:51 -04:00
01bd5f8d3f ApplicationController transitioned to the HTTPx Client system, instead of using requests library proxy for Tor. Also the GUI's observers now do strings to be more neutral to what object type is being downloaded (application_version objects vs dependency). 2026-08-12 14:19:55 -04:00
b84bb2eefa Singbox setup modules, which includes installation, download, move to sudo folder, and sudo setup scripts. Added a model, endpoint, and the ability to sync that model. (Related note: Server-side prepared the endpoint, and stocked with real data.) And also the sync service modules were adjusted to handle new data types more smoothly, before they had errors. As part of that sync flow change, the CachedSync metadata model was transitioned to ints instead of strings, with default 0 values. This should in theory migrate all clients without further changes needed. 2026-08-12 13:11:12 -04:00
c291517b7f Singbox Protocols can be enabled via the main ProfileController 2026-08-10 18:55:23 -04:00
c3b50460cd IP address checking for singbox enforced in singbox runner 2026-08-10 17:58:31 -04:00
2a6b1eacd5 Support for auto-retry on Singbox enable 2026-08-10 16:25:45 -04:00
9d0d140467 Singbox Orchestration! Significant progress made on singbox flow, we now have a working: 1) Configure via singbox_configure. 2) Enable/disable directly via singbox module. 3) Enable/disable with full orchestration via singbox_runner. 4) process id utils isolated. 5) Singbox takedown uses JSON & process id, but not yet coordinating a mismatch. Also in this update: Transition traditional wireguard subscription post/get requests to the new HTTPx system. 2026-08-10 15:49:47 -04:00
061df01a0d Wireguard renegotiation now flows through the new HTTPx modules 2026-08-07 15:05:17 -04:00
320037a2b1 EncryptedProxy configuration path setup, but not yet functional. Pydantic models for each protocol are being setup. 2026-08-06 20:58:36 -04:00
94c4155d60 Get configs from controller's state, instead of reading the disk 2026-08-06 15:57:37 -04:00
983924303d importlib for assets such as yaml 2026-08-06 15:29:26 -04:00
c4802d3c7d Transition ticket prep from old requests-based GET/POST system to the new httpx one 2026-08-06 12:22:57 -04:00
83857a0dcd Minor bootstrap log tweaks 2026-08-06 11:41:26 -04:00
e981a748e5 Tor Bootstrap Uses a new fresh config file. 2026-08-06 11:27:50 -04:00
1b609a9e5e Fixed application_versions insert on sync 2026-08-06 10:58:44 -04:00
8f184272b4 Integrated connect.singleendpoint() with the start of bulk sync getting metadata sync. Also improved observer feedback 2026-08-05 13:16:02 -04:00
8da4978498 Linter bug fixes. Mostly undeclared, unused, or missing imports. One or two outright typos. There's still issues with undeclared types that need to be fixed after api connection refactor is fully implemented. 2026-08-05 12:03:11 -04:00
a5f57f4f5e Let async bulk skip verification if they just came from verification via single api 2026-08-05 03:03:52 -04:00
b70818f774 Added a forced sync at startup if there's no DB pre-existing, to handle a bug in GUI with no application versions. Isolated application_version database calls to their own module. And fixed a bug in SyncController to catch if application_version updates and split them into the different tables. 2026-08-05 02:45:52 -04:00
46c8721a1a Sync from the main app streamlines into the Connect module, to do async bulk sync. Additionally ApplicationVersion was transitioned from manual SQL to the ORM, for easier compatibility with the newer sync system. The side effect functions of this have been tested to be stable. 2026-08-04 20:17:45 -04:00
0e64351b5a Improved systemwide speed, by Turning Wireguard subprocess commands into to recycled generic_run_commands that re-use the terminal 2026-08-03 19:33:22 -04:00
ed055f338d Introduced Connect Module, which manages HTTPx Clients, solves network/DNS issues, and coordinates Tor Bootstraps. Introduced async & single endpoint full workflows. This version is stable and tested for DNS & Tor problems. Also modified Configuration to be Pydantic, instead of @dataclass_json, and changed the connection type to enums. Further, there's a new enum function to get the new enum types, but the legacy function exists for backwards compatability. 2026-08-03 16:59:39 -04:00
fb43228f2f [200~Elaborate HTTPx feature-rich strategy with HTTPx Client Reuse, Tor Management, Tor bootstrap monitor & retry. HTTPx clients can be managed across modules and reused. There's an elaborate HTTPx retry strategy based on status codes. Tor management tries to use the existing Tor default ports, then checks the Tor config, before finally bootstrapping. There is now a ThreadPool futures executor, which even works with Tor, to batch API requests. 2026-08-02 05:44:10 -04:00
3db70541ab Refactor run_generic_command to reuse and persist the same linux subprocess terminal 2026-07-31 12:58:42 -04:00
bf22f764d0 Singbox takedown modules, with a graceful shutdown, then kill, then searching for processes with the phrase. And doing tunnel checks inbetween 2026-07-29 18:58:59 -04:00
5377b7348b Introduced Singbox Proxy Feature Start Utility & Script. But it's not yet integrated to be used 2026-07-29 15:04:33 -04:00
46a84661a0 Improved Firewall Checks on Disable to double check and properly source the config 2026-07-28 17:45:40 -04:00
bae5bfe7f3 Removing whitespace at the top of the sudo scripts 2026-07-28 12:10:39 -04:00