fixed socket.gaierror, thanks Carlos
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.00.0 (2012-07-16 15:53:20) dev
|
Version 2.00.0 (2012-07-16 20:57:59) dev
|
||||||
|
|||||||
+3
-2
@@ -386,8 +386,9 @@ def wsgibase(environ, responder):
|
|||||||
|
|
||||||
local_hosts = [http_host,'::1','127.0.0.1','::ffff:127.0.0.1']
|
local_hosts = [http_host,'::1','127.0.0.1','::ffff:127.0.0.1']
|
||||||
if not global_settings.web2py_runtime_gae:
|
if not global_settings.web2py_runtime_gae:
|
||||||
local_hosts += [socket.gethostname(),
|
local_hosts.append(socket.gethostname())
|
||||||
socket.gethostbyname(http_host)]
|
try: local_hosts.append(socket.gethostbyname(http_host))
|
||||||
|
except socket.gaierror: pass
|
||||||
request.client = get_client(request.env)
|
request.client = get_client(request.env)
|
||||||
request.folder = abspath('applications',
|
request.folder = abspath('applications',
|
||||||
request.application) + os.sep
|
request.application) + os.sep
|
||||||
|
|||||||
Reference in New Issue
Block a user