Update main.py

pull/29/head
Who? 2024-12-01 10:40:22 +07:00 committed by GitHub
parent ed532e6de0
commit 2d2d95527d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ IS_HIKKAHOST = "HIKKAHOST" in os.environ
IS_ORACLE = "ORACLE_OS" in os.environ
IS_AWS = "AWS_OS" in os.environ
IS_SERV00 = "serv00" in socket.gethostname()
IS_TOTHOST = "tothost" in socket.gethostname()
IS_TOTHOST = "tothost" in socket.gethostname() or "TOTHOST" in os.environ
IS_AEZA = "aeza" in socket.gethostname()
IS_WSL = False
with contextlib.suppress(Exception):