[pve-devel] [PATCH pve-container 1/6] LXC::get_primary_ips: fix ip/ip6 mixup

Wolfgang Bumiller w.bumiller at proxmox.com
Fri Jul 24 09:14:53 CEST 2015


---
 src/PVE/LXC.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm
index 4c0b79b..19aaf3e 100644
--- a/src/PVE/LXC.pm
+++ b/src/PVE/LXC.pm
@@ -1117,7 +1117,7 @@ sub get_primary_ips {
 
     my $ipv4 = $net->{ip};
     $ipv4 =~ s!/\d+$!! if $ipv4;
-    my $ipv6 = $net->{ip};
+    my $ipv6 = $net->{ip6};
     $ipv6 =~ s!/\d+$!! if $ipv6;
 
     return ($ipv4, $ipv6);
-- 
2.1.4





More information about the pve-devel mailing list