From b7f04943617d45ee188869b7e2e037c63e10ae6b Mon Sep 17 00:00:00 2001 From: spl0k Date: Sun, 2 Mar 2014 19:07:27 +0100 Subject: [PATCH] Allow choosing which address to listen on from command-line Closes #12 --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index a046d06..ce2d97c 100755 --- a/main.py +++ b/main.py @@ -33,5 +33,5 @@ if __name__ == '__main__': from web import app 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)