From: Leonid Usov Date: Wed, 6 Sep 2023 16:29:48 +0000 (+0300) Subject: vstart.sh: make sure that --localhost does only bind to 127.0.0.1 in all cases X-Git-Tag: v19.1.0~574^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=db726d7a44cde04f82f2e9d2cacd5ac0edfd86ac;p=ceph.git vstart.sh: make sure that --localhost does only bind to 127.0.0.1 in all cases Signed-off-by: Leonid Usov --- diff --git a/src/vstart.sh b/src/vstart.sh index a33bcde3234bd..99ecdf510e9b7 100755 --- a/src/vstart.sh +++ b/src/vstart.sh @@ -174,6 +174,7 @@ pmem_enabled=0 zoned_enabled=0 io_uring_enabled=0 with_jaeger=0 +force_addr=0 with_mgr_dashboard=true if [[ "$(get_cmake_variable WITH_MGR_DASHBOARD_FRONTEND)" != "ON" ]] || @@ -344,6 +345,7 @@ case $1 in ;; -l | --localhost) ip="127.0.0.1" + force_addr=1 ;; -i) [ -z "$2" ] && usage_exit @@ -737,6 +739,12 @@ prepare_conf() { msgr_conf="ms bind msgr2 = false ms bind msgr1 = true" fi + if [ $force_addr -eq 1 ]; then + msgr_conf+=" + public bind addr = $IP + public addr = $IP + cluster addr = $IP" + fi wconf <public_bind_addr.is_blank_ip()) { + # bind_addrs = make_mon_addrs(g_conf()->public_bind_addr); + # } + # + if [ $force_addr -eq 1 ]; then + wconf <