diff --git a/ait/gui/__init__.py b/ait/gui/__init__.py index 803efbc6..567af211 100644 --- a/ait/gui/__init__.py +++ b/ait/gui/__init__.py @@ -216,7 +216,7 @@ def process_log_msg(self, msg): def getBrowserName(self, browser): return getattr(browser, 'name', getattr(browser, '_name', '(none)')) - def init(self, host=None, port=8080): + def init(self): # The /cmd endpoint requires access to the AITGUIPlugin object so it # can publish commands via the Plugin interface. It's defined here with @@ -255,8 +255,8 @@ def handle(pathname): def handle(pathname): return bottle.static_file(pathname, root=HTMLRoot.User) - if host is None: - host = 'localhost' + port = int(getattr(self, 'port', 8080)): + host = getattr(self, 'host', 'localhost'): streams = ait.config.get('gui.telemetry')