]> git.proxmox.com Git - pve-common.git/blobdiff - src/PVE/Network.pm
fix #2303: detect IPs of p2p interfaces
[pve-common.git] / src / PVE / Network.pm
index 8dfc9c2fd063de88defd70b05c85635c6ed02333..b1564e829613eff9525e17ffc7fa9aa4905a7097 100644 (file)
@@ -592,7 +592,7 @@ sub get_local_ip_from_cidr {
     my $code = sub {
        my $line = shift;
 
-       if ($line =~ m!^\s*inet(?:6)?\s+($PVE::Tools::IPRE)/\d+!) {
+       if ($line =~ m!^\s*inet(?:6)?\s+($PVE::Tools::IPRE)(?:/\d+|\s+peer\s+)!) {
            push @$IPs, $1;
        }
     };