mirror of
https://github.com/TheCommsChannel/TC2-BBS-mesh.git
synced 2025-08-16 02:10:16 -04:00
feat: add optional whitelist identifiying users to be allowed access to the bbs
This commit is contained in:
parent
295fb35c92
commit
3620d33f7f
4 changed files with 22 additions and 4 deletions
|
@ -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'])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue