feat: add optional whitelist identifiying users to be allowed access to the bbs

This commit is contained in:
gzi01 2025-03-18 21:16:12 +01:00
parent 295fb35c92
commit 3620d33f7f
No known key found for this signature in database
4 changed files with 22 additions and 4 deletions

View file

@ -66,9 +66,10 @@ def main():
logging.info(f"TC²-BBS is running on {system_config['interface_type']} interface...")
initialize_database()
whitelist = system_config['whitelist']
def receive_packet(packet, interface):
on_receive(packet, interface)
on_receive(packet, interface, whitelist)
pub.subscribe(receive_packet, system_config['mqtt_topic'])