Fix detecting of missing ipv6 module
authorJamie Cameron <jcameron@webmin.com>
Tue, 16 Nov 2010 21:28:54 +0000 (13:28 -0800)
committerJamie Cameron <jcameron@webmin.com>
Tue, 16 Nov 2010 21:28:54 +0000 (13:28 -0800)
usermin/change_bind.cgi
webmin/change_bind.cgi

index 7c78b40..f5705d9 100755 (executable)
@@ -37,7 +37,7 @@ $in{'hostname_def'} || $in{'hostname'} =~ /^[a-z0-9\.\-]+$/i ||
        &error($text{'bind_ehostname'});
 if ($in{'ipv6'}) {
        eval "use Socket6";
-       @$ && &error(&webmin::text('bind_eipv6', "<tt>Socket6</tt>"));
+       $@ && &error(&webmin::text('bind_eipv6', "<tt>Socket6</tt>"));
        }
 
 # Update config file
index 5b19d97..86ebf23 100755 (executable)
@@ -36,7 +36,7 @@ $in{'hostname_def'} || $in{'hostname'} =~ /^[a-z0-9\.\-]+$/i ||
        &error($text{'bind_ehostname'});
 if ($in{'ipv6'}) {
        eval "use Socket6";
-       @$ && &error(&text('bind_eipv6', "<tt>Socket6</tt>"));
+       $@ && &error(&text('bind_eipv6', "<tt>Socket6</tt>"));
        }
 
 # Update config file