Update config_init.py

Added list of nodes to enter bbs at all
This commit is contained in:
ReneKlever 2025-03-24 20:39:54 +01:00 committed by GitHub
parent 1a2523fd74
commit 1f45cce394
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -114,6 +114,12 @@ def initialize_config(config_file: str = None) -> dict[str, Any]:
print(f"Configured to sync with the following BBS nodes: {bbs_nodes}") print(f"Configured to sync with the following BBS nodes: {bbs_nodes}")
allowed2bbs_nodes = config.get('allow2bbs_list', 'allowed2bbs_nodes', fallback='').split(',')
if allowed2bbs_nodes == ['']:
allowed2bbs_nodes = []
print(f"Nodes allowed to enter the BBS: {allowed2bbs_nodes}")
allowed_nodes = config.get('allow_list', 'allowed_nodes', fallback='').split(',') allowed_nodes = config.get('allow_list', 'allowed_nodes', fallback='').split(',')
if allowed_nodes == ['']: if allowed_nodes == ['']:
allowed_nodes = [] allowed_nodes = []