]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rest api: Listen on :: (IPv6) instead of 0.0.0.0
authorWido den Hollander <wido@42on.com>
Mon, 26 Jun 2017 09:46:58 +0000 (11:46 +0200)
committerWido den Hollander <wido@42on.com>
Mon, 26 Jun 2017 09:46:58 +0000 (11:46 +0200)
On Linux systems a socket listening on :: also listens on
all IPv4 addresses.

This makes sure the API is usable over IPv6 as well.

Signed-off-by: Wido den Hollander <wido@42on.com>
src/pybind/ceph_rest_api.py

index 6ca21779876adc27ec576c77189f02bb992a0618..a4c6c8ab6fbb2e8bb3fd8fd9f933ef9183cf621a 100755 (executable)
@@ -20,7 +20,7 @@ from ceph_argparse import \
 # Globals and defaults
 #
 
-DEFAULT_ADDR = '0.0.0.0'
+DEFAULT_ADDR = '::'
 DEFAULT_PORT = '5000'
 DEFAULT_ID = 'restapi'