added config option for using LAN transport

master
Kevin Froman 2020-03-16 02:51:47 -05:00
parent 3aec35ef33
commit 9575352e3e
2 changed files with 6 additions and 3 deletions

View File

@ -164,7 +164,9 @@ def daemon():
events.event('init', threaded=False)
events.event('daemon_start')
Thread(target=LANServer(shared_state).start_server, daemon=True).start()
if config.get('transports.lan', True):
Thread(target=LANServer(shared_state).start_server,
daemon=True).start()
LANManager(shared_state).start()
communicator.startCommunicator(shared_state)

View File

@ -65,7 +65,8 @@
},
"transports": {
"manual_disk": true,
"tor": true
"tor": true,
"lan": true
},
"ui": {
"theme": "dark"