diff --git a/src/onionrcommands/daemonlaunch/__init__.py b/src/onionrcommands/daemonlaunch/__init__.py index 2b7abfd9..50e362d8 100755 --- a/src/onionrcommands/daemonlaunch/__init__.py +++ b/src/onionrcommands/daemonlaunch/__init__.py @@ -164,8 +164,10 @@ def daemon(): events.event('init', threaded=False) events.event('daemon_start') - Thread(target=LANServer(shared_state).start_server, daemon=True).start() - LANManager(shared_state).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) clean_ephemeral_services() diff --git a/static-data/default_config.json b/static-data/default_config.json index 3d7f34e5..53948cfe 100755 --- a/static-data/default_config.json +++ b/static-data/default_config.json @@ -65,7 +65,8 @@ }, "transports": { "manual_disk": true, - "tor": true + "tor": true, + "lan": true }, "ui": { "theme": "dark"