Commit Graph

179 Commits

Author SHA1 Message Date
Alexandr Stelnykovych
287c498bf1 removed obsolete command line argument "disable-shutdown-event" 2025-10-24 16:08:24 +03:00
Alexandr Stelnykovych
866dce42da Merge pull request #1990 from safing/fix/1988-redundant-filterlists-update
fix: Unnecessary filterlists database update on service start
2025-09-03 13:46:43 +03:00
Alexandr Stelnykovych
10589dc725 (interception) Linux: respect original packet marks (#1993)
(WireGuard/wg-quick compatibility)
2025-09-03 13:32:07 +03:00
Alexandr Stelnykovych
73ce148ad6 Refactor registerEventCallbacks to remove error handling and simplify callback registration 2025-09-03 12:55:58 +03:00
Alexandr Stelnykovych
1ee7db6948 Unnecessary filterlists database update on service start
https://github.com/safing/portmaster/issues/1988

---
The filterlists database is often updated when the service starts, even if the latest version is already cached in the database.
This does not affect PM’s functionality, but it unnecessarily consumes CPU resources.

**Technical explanation:**
This happens because the filterlists update check sometimes runs before the module is fully initialized.

**Steps to Reproduce:**
1. Start PM and ensure the filterlists are up to date.
2. Fully stop PM.
3. Start PM again.

**Observed result:**
PM reprocesses the filterlists cache database.

**Expected result:**
PM should update only when new data is available. Already processed data should not be reprocessed.
2025-08-28 17:21:17 +03:00
Alexandr Stelnykovych
58f4058633 v2 tests fix (#1956)
* v2 tests fix
* test: added tests for sqlite
2025-08-07 02:04:38 +03:00
Alexandr Stelnykovych
878de4ba9d refactor(filterlists): Improve index update logging
feat(updates): Add String method
2025-08-05 15:40:02 +03:00
Alexandr Stelnykovych
645438bbf4 fix(filterlists): Semantic version comparison for filter lists index file
Avoid false positives, like: "2025.04.14" != "2025.4.14"
2025-08-05 15:33:14 +03:00
Alexandr Stelnykovych
440e605123 fix(filterlists): Resolve occasional FilterLists initialization failures
Improved module initialization and processing logic to enhance concurrency handling and ensure reliable
https://github.com/safing/portmaster/issues/1951
2025-08-05 13:50:03 +03:00
Alexandr Stelnykovych
1b76004a63 Minor cleanup in code comments 2025-07-11 19:47:28 +03:00
Alexandr Stelnykovych
d5698270e9 improvement(ebpf-Linux): enhance eBPF object loading for kernel compatibility and update attach points 2025-07-11 19:03:13 +03:00
Alexandr Stelnykovych
bcaf0b90f0 Refactor WorkerCtx to use a boolean for isStopWorker 2025-06-26 17:55:10 +03:00
Alexandr Stelnykovych
5d37c126bc Fixed SPN re-initialization
https://github.com/safing/portmaster/issues/1872
2025-06-26 17:14:57 +03:00
Natanael Rodriguez Ramos
cf75e90ea8 Merge branch 'v2.0' into task/refactor-spn 2025-05-28 11:41:10 +01:00
Alexandr Stelnykovych
ec2d4ca9eb Merge branch 'master' into merge/master-into-v2-with-history (v1 into v2)
# Conflicts:
#	Earthfile
#	base/config/main.go
#	base/database/dbmodule/db.go
#	base/database/main.go
#	go.mod
#	go.sum
#	service/core/base/global.go
2025-05-28 11:52:15 +03:00
Alexandr Stelnykovych
531d147936 Improve logging message format 2025-05-22 15:40:06 +03:00
Alexandr Stelnykovych
fbc93cc09f Add more descriptive comments + minor improvements 2025-05-22 15:30:05 +03:00
Alexandr Stelnykovych
3b91aa06ba Enhance default connection settings for Portmaster UI profile to block all connections, ensuring only necessary connections to Portmaster Core are allowed. 2025-05-21 18:12:50 +03:00
Alexandr Stelnykovych
11c4ae39d2 (Windows) Fix false-positive detection of Portmaster UI processes
Problem:
  System browsers launched from the Portmaster UI (e.g., when a user clicks a link) may be incorrectly detected as Portmaster UI child processes.

Solution:
  The Tauri UI app now sets the PORTMASTER_UI_WEBVIEW_PROCESS environment variable for all child WebView processes. Portmaster-core uses this variable to accurately determine if a process is truly related to the Portmaster UI.
2025-05-21 18:08:04 +03:00
Natanael Rodriguez Ramos
ec749b6be7 Merge branch 'v2.0' into task/refactor-spn 2025-05-18 20:59:38 +01:00
Alexandr Stelnykovych
cacf6c552a fix: (Windows) Replace ICO decoder for improved icon extraction
Implemented direct use of `sergeymakinen/go-ico` decoder instead of `mat/besticon/ico`
for icon conversion. The standard `image.Decode()` and  `mat/besticon/ico` approaches
failed with certain ICO files, particularly those containing cursor data
from Windows executable resources. This change ensures more reliable
handling of various ICO format variants.
2025-05-14 17:49:24 +03:00
Alexandr Stelnykovych
8f23846d1c fix: Save and apply profile icon if it hasn't been applied yet
Icon saving was not working in situations where profile.Name had not changed.
2025-05-13 18:13:32 +03:00
Alexandr Stelnykovych
6c98755c77 fix: Deadlock in TCP resolver 2025-05-07 17:33:55 +03:00
Daniel Hååvi
03da033cd2 Only use stale dns cache entries when the query result was successful
(cherry picked from commit f233a56eea)
2025-05-07 17:30:36 +03:00
Daniel Hååvi
f233a56eea Only use stale dns cache entries when the query result was successful 2025-05-05 15:05:48 +02:00
Alexandr Stelnykovych
d3e489f10a Merge branch 'v2.0' into feature/ui-security 2025-04-28 11:08:25 +03:00
Alexandr Stelnykovych
6a230b828c [updates] (Linux): custom post-upgrade commands + command to restore SELinux context 2025-04-22 17:36:42 +03:00
Alexandr Stelnykovych
7e61536992 [desktop] Portmaster UI process detection (including child processes) 2025-04-18 17:23:59 +03:00
Daniel
9801aae3e7 Fix SPN intel updates 2025-04-15 11:26:59 +02:00
Alexandr Stelnykovych
d96f61bd5c fix: [updater] preserve "uninstaller.exe" during upgrade + purged obsolete config of "ignore" files from binary index 2025-04-14 17:48:26 +03:00
Alexandr Stelnykovych
8337eef359 fix: [updater] "restart" action to apply updates 2025-04-14 17:44:12 +03:00
Alexandr Stelnykovych
f0c71c97d1 fix: [updater] crash when updater runs without UI instance 2025-04-14 10:57:12 +00:00
Natanael Rodriguez Ramos
c41d8221ff Merge branch 'v2.0' into task/refactor-spn 2025-04-14 09:44:09 +01:00
Alexandr Stelnykovych
7d5a8fd1dc Merge pull request #1861 from safing/feature/ui-serving-upgrade-lock
Add upgrade locking mechanism to core ui serving module
2025-04-14 10:05:22 +03:00
Alexandr Stelnykovych
2c6fe52d5f Merge pull request #1860 from safing/feature/call-limiter-2
CallLimiter2
2025-04-14 10:04:41 +03:00
Alexandr Stelnykovych
70c2fad662 Merge pull request #1853 from safing/feature/ui-security
UI process authentication
2025-04-14 10:03:24 +03:00
Natanael Rodriguez Ramos
589b1afa64 task(spn): Updated default intel index name 2025-04-11 14:05:59 +01:00
Natanael Rodriguez Ramos
6d22b9347a task(spn): Update SPN binary index url 2025-04-11 12:41:57 +01:00
Natanael Rodriguez Ramos
ecce583296 task(spn): Update SPN binary index url 2025-04-11 12:38:34 +01:00
Daniel
438f43156f Add upgrade locking mechanism to core ui serving module 2025-04-07 15:26:35 +02:00
Daniel
38d84b57b4 Use CallLimiter2 2025-04-07 14:23:58 +02:00
Vladimir Stoilov
c1c3197574 [service] Fix UI path detection 2025-04-01 14:33:15 +03:00
Alexandr Stelnykovych
b83b2901c8 [updates] fix: skip PurgeDirectory during backup 2025-03-28 17:20:49 +02:00
Alexandr Stelnykovych
2a85a4bfd0 [updates] fix: update from locally generated index (timestamps and downgrade) 2025-03-28 14:23:31 +02:00
Alexandr Stelnykovych
776b4860ef [updates] fix: use correct binaries index name 2025-03-26 17:35:27 +02:00
Alexandr Stelnykovych
b9a9129e81 Merge branch 'feature/sqlite-db-v1' into develop 2025-03-25 17:08:32 +02:00
Alexandr Stelnykovych
731ad885bb Merge pull request #1821 from safing/feature/installer-migration
Feature/installer migration
2025-03-25 17:06:35 +02:00
Alexandr Stelnykovych
b320ac24fb Merge pull request #1845 from safing/fix/generated-index-version
Use the current binary version for the generated index
2025-03-25 17:02:53 +02:00
Daniel
93b1623b61 Use the current binary version for the generated index 2025-03-25 15:00:24 +01:00
Alexandr Stelnykovych
aada179191 Merge branch 'v2.0' into feature/installer-migration 2025-03-21 15:41:29 +02:00