mirror of
https://github.com/TheCommsChannel/TC2-BBS-mesh.git
synced 2025-08-07 14:12:19 -04:00
Update config_init.py
Added list of nodes to enter bbs at all
This commit is contained in:
parent
1a2523fd74
commit
1f45cce394
1 changed files with 6 additions and 0 deletions
|
@ -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 = []
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue