]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common/ipaddr: Allow binding ipv6 addr on lo 39346/head
authorKefu Chai <kchai@redhat.com>
Mon, 8 Feb 2021 02:38:02 +0000 (10:38 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 8 Feb 2021 02:38:04 +0000 (10:38 +0800)
see also 201b59204374ebdab91bb554b986577a97b19c36

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/common/ipaddr.cc

index f9cfbd5598adf85ef8b76a178b4bdf672c5be8df..5a3757c72b91b530e6b615ab7cd0a88a467c825a 100644 (file)
@@ -107,7 +107,7 @@ const struct ifaddrs *find_ipv6_in_subnet(const struct ifaddrs *addrs,
     if (addrs->ifa_addr == NULL)
       continue;
 
-    if (boost::starts_with(addrs->ifa_name, "lo"))
+    if (boost::starts_with(addrs->ifa_name, "lo:"))
       continue;
 
     if (numa_node >= 0 && !match_numa_node(addrs->ifa_name, numa_node))