do not bind to lan if there is no lan
This commit is contained in:
parent
4a647b4cb1
commit
ee28aba792
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user