fixed 1760:option -p or --port not working at command line

This commit is contained in:
mdipierro
2013-11-01 17:45:43 -05:00
parent 123f0f8269
commit 975bc64fd0
2 changed files with 4 additions and 2 deletions

View File

@@ -1 +1 @@
Version 2.7.4-stable+timestamp.2013.10.31.10.21.05
Version 2.7.4-stable+timestamp.2013.11.01.17.44.38

View File

@@ -131,7 +131,9 @@ def env(
request.function = f or 'index'
response.view = '%s/%s.html' % (request.controller,
request.function)
request.env.http_host = '127.0.0.1:8000'
ip = global_settings.cmd_options.ip
port = global_settings.cmd_options.port
request.env.http_host = '%s:%s' % (ip,port)
request.env.remote_addr = '127.0.0.1'
request.env.web2py_runtime_gae = global_settings.web2py_runtime_gae