Skip to content

Commit

Permalink
Fixed passing string as a proxy port number
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantin Nikitin committed Oct 24, 2012
1 parent 87f4883 commit 446e7f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vaurien/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def main():
help='Start a simple http server to control vaurien')
parser.add_argument('--http-host', default='localhost',
help='Host of the http server, if any')
parser.add_argument('--http-port', default=8080,
parser.add_argument('--http-port', default='8080',
help='Port of the http server, if any')

# get the values from the default config
Expand Down Expand Up @@ -132,7 +132,7 @@ def main():

setattr(app, 'proxy', proxy)
# app.run(host=args.http_host, port=args.http_port)
http_server = WSGIServer((args.http_host, args.http_port), app)
http_server = WSGIServer((args.http_host, int(args.http_port)), app)
http_server.start()
logger.info('Started the HTTP server: http://%s:%s' %
(args.http_host, args.http_port))
Expand Down

0 comments on commit 446e7f0

Please sign in to comment.