Commit Graph

2770 Commits

Author SHA1 Message Date
Alexandr Stelnykovych
aa507572d0 fix(group): correct IsStopped logic to use local state variable 2025-11-28 13:34:07 +02:00
Alexandr Stelnykovych
569e0a70dd fix(control): wait for SPN to fully stop before completing pause operation 2025-11-28 13:26:14 +02:00
Alexandr Stelnykovych
b12729cb3a Permanent verdict for accepted API outbound packets 2025-11-27 16:36:49 +02:00
Alexandr Stelnykovych
b43905aac5 Refactor resume worker to handle unexpected wall-clock changes and improve SPN auto-resume logic 2025-11-27 16:27:59 +02:00
Alexandr Stelnykovych
1208783f34 Enhance fast-tracking for API connections to maintain seamless UI experience after pause 2025-11-26 17:39:42 +02:00
Alexandr Stelnykovych
d635db77c2 Improve pause info display and error handling 2025-11-26 13:01:24 +02:00
Alexandr Stelnykovych
4913147dd5 (UI) minor update of update pause notification messages 2025-11-21 14:07:57 +02:00
Alexandr Stelnykovych
7341fb3068 Merge pull request #2078 from safing/fix/UI-websocket-shutdown-lifecycle
Fix/UI websocket shutdown lifecycle
2025-11-21 12:54:47 +02:00
Alexandr Stelnykovych
76214bd986 Add WebSocket ping/pong keep-alive mechanism
Implements RFC 6455 compliant ping/pong health checking to detect dead connections:
- Send ping frames every 10 seconds
- Monitor pong responses with 5-second timeout after each ping
2025-11-21 12:28:57 +02:00
Alexandr Stelnykovych
0b20a368f9 Fix WebSocket shutdown and prevent WSA errors
- Add graceful shutdown for WebSocket reconnection loop
- Implement shutdown signal to stop connection attempts on exit
- Track and cancel tray handler tasks to prevent duplicates
- Handle app exit event to trigger WebSocket cleanup

Fixes WSAStartup error 10093 and application hang on shutdown.
2025-11-21 02:08:06 +02:00
Alexandr Stelnykovych
f5533b447c fix(traymenu): update SPN button logic and pause menu items based on SPN status 2025-11-20 14:13:51 +02:00
Alexandr Stelnykovych
d957e0142f Merge pull request #2069 from safing/fix/2051-ui-crash-in-rust-dark-light
Fix: UI crash in rust dark light module
2025-11-12 16:11:54 +02:00
Alexandr Stelnykovych
a14a55c950 Merge pull request #2067 from safing/feature/2050-pause
Feature: pause PM/SPN
2025-11-12 14:26:40 +02:00
Alexandr Stelnykovych
063fa7f115 fix(interception): ensure metrics are stopped on failed module start 2025-11-12 14:24:24 +02:00
Alexandr Stelnykovych
2a551d5f10 fix(test): add missing faker dependency for generated code
Added github.com/jaswdr/faker/v2 v2.9.0 to resolve test compilation failures
in generated factory test files
2025-11-12 13:19:17 +02:00
Alexandr Stelnykovych
40cd0dbe2f Merge pull request #2064 from D3SOX/patch-1
Update log file path in issue templates
2025-11-12 12:49:06 +02:00
Alexandr Stelnykovych
4a3a494ed2 Update report-compatibility.md
PMv2 logs path on Windows
2025-11-12 12:48:26 +02:00
Alexandr Stelnykovych
f1f18d4b64 Update report-bug.md
PMv2 logs path in Windows
2025-11-12 12:47:37 +02:00
Alexandr Stelnykovych
f9105fc738 (core) Update golang dependencies
``
go get -u ./...
go mod tidy
```
Fixed SQLite related code to fit latest changes in  SQLite driver
2025-11-12 12:37:33 +02:00
Alexandr Stelnykovych
ae72509293 UI(Tauri): Replace local rust-dark-light with published dark-light crate
https://github.com/safing/portmaster/issues/2051
2025-11-11 19:44:31 +02:00
Alexandr Stelnykovych
14be84d2d0 fix(instance): re-add dnsmonitor to serviceGroupInterception module 2025-11-11 18:20:10 +02:00
Alexandr Stelnykovych
83fb71b4bc Merge branch 'development' into feature/2050-pause 2025-11-11 17:33:28 +02:00
Alexandr Stelnykovych
2009dcf9c8 fix: DNSMonitor module crash on stop
Add traceEnded channel to ETWSession for better session management

https://github.com/safing/portmaster/issues/2065
2025-11-11 17:32:56 +02:00
Alexandr Stelnykovych
3abb2b3c69 feat(control): add notification for automatic resume from pause state 2025-11-11 17:18:58 +02:00
Alexandr Stelnykovych
3406017754 Refactor status module initialization: register runtime privider as soon as possible 2025-11-11 17:17:26 +02:00
Alexandr Stelnykovych
3aaa5ab161 fix(control): adjust pause logic to ensure correct state updates and notification behavior
fix(traymenu): update tray menu label from "Secured" to "unknown"
fix(notifications): log error when notification is clicked without an associated action
2025-11-10 18:20:34 +02:00
Alexandr Stelnykovych
139610b99d feat(UI): enhance pause info display in system tray menu and reorganize menu item positions
https://github.com/safing/portmaster/issues/2050
2025-11-10 15:14:20 +02:00
Nico
c2d8e5a880 Update Linux log file path in issue templates 2025-11-09 18:51:45 +01:00
Alexandr Stelnykovych
997f95698b UI(system tray menu): added pause/resume menu items + replaced subscription to obsolete "runtime:subsystems" by "runtime:system/status" 2025-11-07 16:58:42 +02:00
Alexandr Stelnykovych
4d58f68fde feat(UI): enhance SPN pause menu to allow time modification while paused 2025-11-07 16:53:01 +02:00
Alexandr Stelnykovych
2c67b27b4a refactor: remove SPNGroup from 'control.instance' interface and update pause logic 2025-11-07 16:51:58 +02:00
Alexandr Stelnykovych
b9cce33113 UI: Removed sources for "runtime:subsystems/" status API calls
It looks like they are not used anymore and replaced by "runtime:system/status"
2025-11-07 16:50:18 +02:00
Alexandr Stelnykovych
fecb42a691 UI: update SPN pause menu items and add spnEnabled state management
https://github.com/safing/portmaster/issues/2050
2025-11-06 18:42:24 +02:00
Alexandr Stelnykovych
4d2d91972b feat: refactor interception modules into pausable group
- Add GroupModule to wrap interception, dnsmonitor, and compat modules
- Simplify pause/resume operations by grouping related modules
- Update worker info collection to handle nested module groups
- Remove deprecated flags and improve module lifecycle management
- Add proper atomic state tracking for nfqueue interception

https://github.com/safing/portmaster/issues/2050
2025-11-06 17:28:38 +02:00
Alexandr Stelnykovych
7709a6600c feat: pause and resume functionality improvements + UI
https://github.com/safing/portmaster/issues/2050
2025-11-05 18:36:52 +02:00
Alexandr Stelnykovych
c063bda700 feat(WIP): add pause and resume functionality for Portmaster/SPN
https://github.com/safing/portmaster/issues/2050
2025-10-24 18:15:27 +03:00
Alexandr Stelnykovych
287c498bf1 removed obsolete command line argument "disable-shutdown-event" 2025-10-24 16:08:24 +03:00
Alexandr Stelnykovych
bf3d007a4d Revert "Merge pull request #2003 from safing/dependabot/cargo/desktop/tauri/src-tauri/glib-0.20.0"
This reverts commit f8ac80bbb2, reversing
changes made to 37cb324b56.
2025-10-18 01:01:38 +03:00
Alexandr Stelnykovych
a736e9fec1 update: bump rust version to 1.89 in Earthfile 2025-10-18 00:37:53 +03:00
Alexandr Stelnykovych
8190e66524 Merge pull request #2040 from safing/feature/2039-UI-auto-reload-connections
Feature: UI auto reload connections
2025-10-18 00:04:44 +03:00
Alexandr Stelnykovych
1ebac535af minor refactoring 2025-10-18 00:01:01 +03:00
Alexandr Stelnykovych
998865efe2 Merge pull request #2042 from safing/fix/2041-UI-crash-loading-grouped-connections
fix: UI bug: when loading grouped connections from 'future'
2025-10-17 23:51:19 +03:00
Alexandr Stelnykovych
9cf71fd3e1 go get -u=patch ./... 2025-10-17 23:42:54 +03:00
Alexandr Stelnykovych
e0345949b8 Merge pull request #2013 from safing/dependabot/go_modules/golang.org/x/sync-0.17.0
build(deps): bump golang.org/x/sync from 0.16.0 to 0.17.0
2025-10-17 23:13:42 +03:00
Alexandr Stelnykovych
67546f850d Merge pull request #2009 from safing/dependabot/cargo/desktop/tauri/src-tauri/crossbeam-channel-0.5.15
build(deps): bump crossbeam-channel from 0.5.14 to 0.5.15 in /desktop/tauri/src-tauri
2025-10-17 23:11:14 +03:00
Alexandr Stelnykovych
a1fbb0dc0a Merge pull request #1943 from safing/dependabot/cargo/desktop/tauri/src-tauri/tokio-1.44.2
Bump tokio from 1.44.1 to 1.44.2 in /desktop/tauri/src-tauri
2025-10-17 23:00:17 +03:00
Alexandr Stelnykovych
f8ac80bbb2 Merge pull request #2003 from safing/dependabot/cargo/desktop/tauri/src-tauri/glib-0.20.0
build(deps): bump glib from 0.18.5 to 0.20.0 in /desktop/tauri/src-tauri
2025-10-17 22:50:34 +03:00
Alexandr Stelnykovych
37cb324b56 Merge pull request #2002 from safing/dependabot/cargo/desktop/tauri/src-tauri/openssl-0.10.73
build(deps): bump openssl from 0.10.71 to 0.10.73 in /desktop/tauri/src-tauri
2025-10-17 22:45:16 +03:00
Alexandr Stelnykovych
965114becb Merge pull request #2008 from safing/dependabot/cargo/desktop/tauri/src-tauri/tauri-plugin-shell-2.2.1
build(deps): bump tauri-plugin-shell from 2.2.0 to 2.2.1 in /desktop/tauri/src-tauri
2025-10-17 22:41:09 +03:00
Alexandr Stelnykovych
303b26f679 npm audit fix 2025-10-17 22:36:21 +03:00