1
0
Fork 0

add ip checking config options

This commit is contained in:
Hay1tsme 2023-08-08 10:24:28 -04:00
parent 88a1462304
commit 4744e8cf5f
2 changed files with 14 additions and 0 deletions

View File

@ -48,6 +48,18 @@ class ServerConfig:
self.__config, "core", "server", "log_dir", default="logs"
)
@property
def check_arcade_ip(self) -> bool:
return CoreConfig.get_config_field(
self.__config, "core", "server", "check_arcade_ip", default=False
)
@property
def strict_ip_checking(self) -> bool:
return CoreConfig.get_config_field(
self.__config, "core", "server", "strict_ip_checking", default=False
)
class TitleConfig:
def __init__(self, parent_config: "CoreConfig") -> None:

View File

@ -6,6 +6,8 @@ server:
is_develop: True
threading: False
log_dir: "logs"
check_arcade_ip: False
strict_ip_checking: False
title:
loglevel: "info"