]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
vstart.sh: fix typo when getting ipv4 address
authorChangcheng Liu <changcheng.liu@intel.com>
Wed, 6 Mar 2019 08:14:25 +0000 (16:14 +0800)
committerChangcheng Liu <changcheng.liu@intel.com>
Mon, 8 Apr 2019 04:52:10 +0000 (12:52 +0800)
Signed-off-by: Changcheng Liu <changcheng.liu@intel.com>
src/vstart.sh

index 417b478b901c9af1aedc379f223fbda99bf12b8c..427710413de5447bfcd5871b9756fca599faa2a5 100755 (executable)
@@ -972,7 +972,7 @@ else
     else
        IP_CMD="ifconfig"
     fi
-    # filter out IPv6 and localhost addresses
+    # filter out IPv4 and localhost addresses
     IP="$($IP_CMD | sed -En 's/127.0.0.1//;s/.*inet (addr:)?(([0-9]*\.){3}[0-9]*).*/\2/p' | head -n1)"
     # if nothing left, try using localhost address, it might work
     if [ -z "$IP" ]; then IP="127.0.0.1"; fi