Skip to content

Commit

Permalink
bug fix: make other host can get the server
Browse files Browse the repository at this point in the history
  • Loading branch information
tsbxmw committed Apr 9, 2019
1 parent c3961f4 commit cda8d5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hafweb/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@

MAIN_VERSION = 0
SUB_VERSION = 0
FIX_VERSION = 4
FIX_VERSION = 5

VERSION = f"{MAIN_VERSION}.{SUB_VERSION}.{FIX_VERSION}"
4 changes: 2 additions & 2 deletions hafweb/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ def main():
Controller.bind_all()
ControllerApi.bind_all()
if hasattr(args, 'port'):
app.run(debug=False, port=WEB_SERVER_PORT if args.port==8081 else args.port)
app.run(host='0.0.0.0', debug=False, port=WEB_SERVER_PORT if args.port==8081 else args.port)
else:
app.run(debug=False, port=WEB_SERVER_PORT)
app.run(host='0.0.0.0', debug=False, port=WEB_SERVER_PORT)

0 comments on commit cda8d5a

Please sign in to comment.