Merge pull request #1953 from tangdou1/patch-4

ipv6 compatibility
This commit is contained in:
ZeroNet 2019-04-03 15:54:54 +02:00 committed by GitHub
commit cc41572d48
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -134,7 +134,10 @@ class UiServer:
from Debug import DebugReloader from Debug import DebugReloader
self.log.write = lambda msg: self.log.debug(msg.strip()) # For Wsgi access.log self.log.write = lambda msg: self.log.debug(msg.strip()) # For Wsgi access.log
self.log.info("--------------------------------------") self.log.info("--------------------------------------")
self.log.info("Web interface: http://%s:%s/" % (config.ui_ip, config.ui_port)) if ":" in config.ui_ip:
self.log.info("Web interface: http://[%s]:%s/" % (config.ui_ip, config.ui_port))
else:
self.log.info("Web interface: http://%s:%s/" % (config.ui_ip, config.ui_port))
self.log.info("--------------------------------------") self.log.info("--------------------------------------")
if config.open_browser and config.open_browser != "False": if config.open_browser and config.open_browser != "False":