mirror of
https://github.com/webmin/webmin.git
synced 2026-06-21 20:00:26 +01:00
Using module_name is more reliable and faster than pwd
This commit is contained in:
@@ -34,7 +34,7 @@ if ($_[0] =~ /6$/i) {
|
||||
# if script runs in firewall6 or version=inet6, 6 is returned, else 4
|
||||
sub get_ipvx_version
|
||||
{
|
||||
if ( $in{'version'} =~ /6$/ || `pwd` =~ /6$/)
|
||||
if ( $in{'version'} =~ /6$/ || $module_name =~ /6$/)
|
||||
{ return 6; }
|
||||
return 4;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user