Still need to work on validation

This commit is contained in:
Donald Zou
2025-08-16 01:51:18 +08:00
parent 3e3047f23e
commit 88f40b244a
4 changed files with 152 additions and 10 deletions

View File

@@ -170,7 +170,7 @@ class DashboardConfig:
self.DashboardAPIKeys = self.__getAPIKeys()
def __configValidation(self, section : str, key: str, value: Any) -> [bool, str]:
def __configValidation(self, section : str, key: str, value: Any) -> tuple[bool, str]:
if (type(value) is str and len(value) == 0
and section not in ['Email', 'WireGuardConfiguration'] and
(section == 'Peer' and key == 'peer_global_dns')):