fix:静态类引用

This commit is contained in:
jxxghp
2025-07-08 21:38:34 +08:00
parent 378777dc7c
commit f64363728e
11 changed files with 60 additions and 70 deletions
-1
View File
@@ -8,7 +8,6 @@ import os
class DisplayHelper(metaclass=Singleton):
_display: Display = None
def __init__(self):
if not SystemUtils.is_docker():
+3
View File
@@ -70,6 +70,9 @@ def enable_doh(enable: bool):
class DohHelper(metaclass=Singleton):
"""
DoH帮助类,用于处理DNS over HTTPS解析。
"""
def __init__(self):
enable_doh(settings.DOH_ENABLE)