1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-09-20 03:11:04 +00:00

Allow choosing which address to listen on from command-line

Closes #12
This commit is contained in:
spl0k 2014-03-02 19:07:27 +01:00
parent cebc4ff8a7
commit b7f0494361

View File

@ -33,5 +33,5 @@ if __name__ == '__main__':
from web import app from web import app
db.init_db() db.init_db()
app.run(host = '0.0.0.0', debug = True) app.run(host = sys.argv[1] if len(sys.argv) > 1 else None, debug = True)