Commit 2c3d66bb authored by Julien Muchembled's avatar Julien Muchembled

registry: fix permission of 'topology' RPC

parent ff341419
...@@ -81,7 +81,7 @@ class RegistryServer(object): ...@@ -81,7 +81,7 @@ class RegistryServer(object):
def _handle_request(self, request, method, kw): def _handle_request(self, request, method, kw):
m = getattr(self, method) m = getattr(self, method)
if method in ('topology',) and \ if method in ('topology',) and \
request.client_address[0] not in ('127.0.0.1', '::'): request.client_address[0] not in ('127.0.0.1', '::1'):
return request.send_error(httplib.FORBIDDEN) return request.send_error(httplib.FORBIDDEN)
key = m.getcallargs(**kw).get('cn') key = m.getcallargs(**kw).get('cn')
if key: if key:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment