Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #110 - Made GUI port optionally configurable #120

Merged
merged 5 commits into from
Aug 23, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ait/gui/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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')

Expand Down