From eeb23a641e66de811f75cb42b79a4987c1c5f3fd Mon Sep 17 00:00:00 2001 From: shuddertrix Date: Sun, 28 Feb 2016 01:16:28 -0500 Subject: [PATCH] Debug server: Use port if provided --- cgi-bin/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cgi-bin/server.py b/cgi-bin/server.py index 0ca3efd..61043f7 100755 --- a/cgi-bin/server.py +++ b/cgi-bin/server.py @@ -25,5 +25,5 @@ app = create_application() if __name__ == '__main__': if app: import sys - app.run(host = sys.argv[1] if len(sys.argv) > 1 else None, debug = True) + app.run(host = sys.argv[1] if len(sys.argv) > 1 else None, port = int(sys.argv[2]) if len(sys.argv) > 2 else 5000, debug = True)