From 6e2808f63e108f46ac215543dcd022e76541683f Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 28 May 2014 13:48:23 -0400 Subject: [PATCH] Have HTTP interface bind to ipv6 for dual stack support --- confluent_server/confluent/httpapi.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/confluent_server/confluent/httpapi.py b/confluent_server/confluent/httpapi.py index 5d1297fe..607e29e3 100644 --- a/confluent_server/confluent/httpapi.py +++ b/confluent_server/confluent/httpapi.py @@ -14,8 +14,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # This SCGI server provides a http wrap to confluent api -# It additionally manages httprequest console sessions as supported by -# shillinabox javascript +# It additionally manages httprequest console sessions import base64 import Cookie import confluent.auth as auth @@ -29,6 +28,7 @@ import confluent.util as util import copy import eventlet import json +import socket import traceback import time import urlparse @@ -483,8 +483,9 @@ def serve(): #but deps are simpler without flup #also, the potential for direct http can be handy #todo remains unix domain socket for even http - eventlet.wsgi.server(eventlet.listen(("", 4005)), resourcehandler, - log=False, log_output=False, debug=False) + eventlet.wsgi.server( + eventlet.listen(('::', 4005, 0, 0), family=socket.AF_INET6), + resourcehandler, log=False, log_output=False, debug=False) class HttpApi(object):