diff --git a/core/controllers/ProfileController.py b/core/controllers/ProfileController.py index 258c210..b786184 100644 --- a/core/controllers/ProfileController.py +++ b/core/controllers/ProfileController.py @@ -1,24 +1,9 @@ from core.services.profiles.ProfileRepository import ProfileRepository -# from core.services.networking.systemwide.systemwide_wireguard import terminate_system_connection -# from core.services.networking.general_connection_tools.testing_evaluating import system_uses_wireguard_interface -# from core.services.networking.general_connection_tools.connection_enable import establish_connection -# from core.services.networking.systemwide.systemwide_utils import get_firewall_setting, get_dns_setting -# from core.services.networking.systemwide.encrypted_proxy.singbox_runner import end_singbox -# from core.services.networking.systemwide import killswitch from core.services.subscriptions import subscriptions -# from core.errors.exceptions import FirewallError from core.models.Result import Result, ResultError -# from core.observers.TicketObserver import TicketObserver -# from core.services.assassin.ticket_respawn import respawn_profile -# from core.services.assassin import assassin_tools from core.errors.logger import logger from core.Errors import InvalidSubscriptionError, MissingSubscriptionError -#, ConnectionTerminationError, ProfileActivationError, ProfileDeactivationError, MissingLocationError, ConnectionUnprotectedError, EndpointVerificationError, ProfileStateConflictError -# from core.controllers.ApplicationController import ApplicationController -# from core.controllers.ApplicationVersionController import ApplicationVersionController -# from core.controllers.SessionStateController import SessionStateController -# from core.controllers.SystemStateController import SystemStateController from core.models.BaseProfile import BaseProfile as Profile from core.models.Subscription import Subscription from core.models.session.SessionProfile import SessionProfile @@ -156,3 +141,20 @@ class ProfileController: def has_wireguard_configuration(profile: Union[SessionProfile, SystemProfile]): return profile.has_wireguard_configuration() + + +# from core.observers.TicketObserver import TicketObserver +# from core.services.assassin.ticket_respawn import respawn_profile +# from core.services.assassin import assassin_tools +# from core.errors.exceptions import FirewallError +# from core.services.networking.systemwide.systemwide_wireguard import terminate_system_connection +# from core.services.networking.general_connection_tools.testing_evaluating import system_uses_wireguard_interface +# from core.services.networking.general_connection_tools.connection_enable import establish_connection +# from core.services.networking.systemwide.systemwide_utils import get_firewall_setting, get_dns_setting +# from core.services.networking.systemwide.encrypted_proxy.singbox_runner import end_singbox +# from core.services.networking.systemwide import killswitch +#, ConnectionTerminationError, ProfileActivationError, ProfileDeactivationError, MissingLocationError, ConnectionUnprotectedError, EndpointVerificationError, ProfileStateConflictError +# from core.controllers.ApplicationController import ApplicationController +# from core.controllers.ApplicationVersionController import ApplicationVersionController +# from core.controllers.SessionStateController import SessionStateController +# from core.controllers.SystemStateController import SystemStateController