[pve-devel] [PATCH] include ::1 in localhost check in get_active_server

Wolfgang Bumiller w.bumiller at proxmox.com
Tue May 26 16:10:30 CEST 2015


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

diff --git a/PVE/Storage/GlusterfsPlugin.pm b/PVE/Storage/GlusterfsPlugin.pm
index 36322b1..890efcf 100644
--- a/PVE/Storage/GlusterfsPlugin.pm
+++ b/PVE/Storage/GlusterfsPlugin.pm
@@ -37,7 +37,7 @@ my $get_active_server = sub {
     foreach my $server (@$serverlist) {
 	my $status = 0;
 
-	if ($server && $server ne 'localhost' && $server ne '127.0.0.1') {
+	if ($server && $server ne 'localhost' && $server ne '127.0.0.1' && $server ne '::1') {
 
 	    my $p = Net::Ping->new("tcp", 2);
 	    $status = $p->ping($server);
-- 
2.1.4





More information about the pve-devel mailing list