From 2e8d99e5faa959ccc7f01a32c9ce6bfba09c636c Mon Sep 17 00:00:00 2001 From: Kevin Trocolli Date: Sun, 20 Aug 2023 23:25:50 -0400 Subject: [PATCH] allnet: add ip check config option --- core/config.py | 6 ++++++ example_config/core.yaml | 1 + 2 files changed, 7 insertions(+) diff --git a/core/config.py b/core/config.py index 3376c3c..83a941a 100644 --- a/core/config.py +++ b/core/config.py @@ -200,6 +200,12 @@ class AllnetConfig: self.__config, "core", "allnet", "port", default=80 ) + @property + def ip_check(self) -> bool: + return CoreConfig.get_config_field( + self.__config, "core", "allnet", "ip_check", default=False + ) + @property def allow_online_updates(self) -> int: return CoreConfig.get_config_field( diff --git a/example_config/core.yaml b/example_config/core.yaml index 8d78008..1ecb7ff 100644 --- a/example_config/core.yaml +++ b/example_config/core.yaml @@ -34,6 +34,7 @@ frontend: allnet: loglevel: "info" port: 80 + ip_check: False allow_online_updates: False update_cfg_folder: ""