Add proxy endpoint information

Signed-off-by: Loren Eteval <loren.eteval@proton.me>
This commit is contained in:
Loren Eteval
2026-08-19 11:02:53 +08:00
parent b212f85dd4
commit 09df7dc3bd
19 changed files with 3145 additions and 10 deletions
+12
View File
@@ -26,6 +26,7 @@ from Furious.Service.TrafficStatsManager import (
CLEAR_TRAFFIC_USAGE_ON_RECONNECT_SETTING,
METRICS_COLLECTION_SETTING,
)
from Furious.Service.EndpointInfoService import PROXY_ENDPOINT_INFO_SETTING
from PySide6 import QtCore
@@ -33,6 +34,7 @@ __all__ = [
'APPLICATION_THEME_SETTING',
'LOG_AUTO_SCROLL_DOWN_SETTING',
'LOG_AUTO_CLEAR_SETTING',
'PROXY_ENDPOINT_INFO_SETTING',
'SettingsController',
]
@@ -292,6 +294,16 @@ class SettingsController:
except (AttributeError, RuntimeError):
pass
@classmethod
def setProxyEndpointInfoEnabled(cls, enabled: bool):
"""Persist and immediately apply privacy-sensitive endpoint inspection."""
cls._setBinary(PROXY_ENDPOINT_INFO_SETTING, enabled)
try:
AppEndpointInfoService().setEnabled(enabled)
except (AttributeError, RuntimeError):
pass
@classmethod
def setEditorWhitespaceVisible(cls, enabled: bool):
"""Apply and persist editor whitespace visibility."""