sp-hydra-veil-core/core/models/system/SystemConnection.py

16 lines
373 B
Python

from core.models.BaseConnection import BaseConnection
from dataclasses import dataclass
@dataclass
class SystemConnection (BaseConnection):
def __post_init__(self):
if self.code not in ('vless', 'hysteria2', 'wireguard'):
raise ValueError('Invalid connection code.')
@staticmethod
def needs_proxy_configuration():
return False