This commit is contained in:
qijungu
2018-03-31 13:12:11 -05:00
parent 1a7a86bff0
commit dcaa5a094d
2 changed files with 33 additions and 1 deletions

View File

@ -23,4 +23,9 @@ def screenfeed():
### main ###
if __name__ == '__main__':
app.run(host='0.0.0.0', threaded=True)
from sys import argv
if len(argv) <= 1:
port = 18331
else:
port = int(argv[1])
app.run(host='0.0.0.0', port=port, threaded=True)