fixed 1760:option -p or --port not working at command line
This commit is contained in:
2
VERSION
2
VERSION
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user