do not bind to lan if there is no lan

master
Kevin 2020-06-25 23:44:39 -05:00
parent 4a647b4cb1
commit ee28aba792
1 changed files with 3 additions and 0 deletions

View File

@ -83,6 +83,9 @@ class LANServer:
better_sleep(1)
if self.server.started and port == self.server.server_port:
logger.info(f'Serving to LAN on {self.host}:{self.port}', terminal=True)
if self.host == "":
logger.info("Not binding to LAN due to no private network configured.", terminal=True)
return
for i in ports:
self.server = WSGIServer((self.host, i),
self.app, log=None,