Skip to content
Snippets Groups Projects
Commit 73cdf615 authored by Antony Lesuisse's avatar Antony Lesuisse
Browse files

[FIX] wsgi server listen to ipv4 0.0.0.0

bzr revid: al@openerp.com-20110924151831-7nra57wpqq6oqose
parent 7a88d905
No related branches found
No related tags found
No related merge requests found
......@@ -305,14 +305,11 @@ def serve():
# TODO Change the xmlrpc_port option to http_port.
try:
import werkzeug.serving
httpd = werkzeug.serving.make_server('localhost',
config['xmlrpc_port'], application, threaded=True)
httpd = werkzeug.serving.make_server('0.0.0.0', config['xmlrpc_port'], application, threaded=True)
except ImportError, e:
import wsgiref.simple_server
logging.getLogger('wsgi').warn('Can not import werkzeug, '
'falling back to wsgiref.')
httpd = wsgiref.simple_server.make_server('localhost',
config['xmlrpc_port'], application)
logging.getLogger('wsgi').warn('Can not import werkzeug, ' 'falling back to wsgiref.')
httpd = wsgiref.simple_server.make_server('0.0.0.0', config['xmlrpc_port'], application)
httpd.serve_forever()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment