Prepare access for IPv6 only and variable interface

This commit is contained in:
bergware
2021-08-25 13:48:04 +02:00
parent 09a3e63868
commit 4aeeed6072
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ $disabled_auto = $isLEcert && !$dnsRebindingProtection && $dnsValid ? '' :
// Get ports in use
$portsInUse = [];
exec("lsof -Pni|awk '/LISTEN/ && \$9!~/127.0.0.1/ && \$9!~/\[::1\]/{print \$9}'|uniq", $output);
exec("lsof -Pni|awk '/LISTEN/ && \$9!~/127.0.0.1/ && \$9!~/\\[::1\\]/{print \$9}'|uniq", $output);
$bind = $var['BIND_MGT']=='yes';
$list = is_array($internalip) ? array_merge(['*'],$internalip) : ['*',$internalip];
+1 -1
View File
@@ -23,7 +23,7 @@ function plain($ip) {
}
// Get ports in use
$portsInUse = [];
exec("lsof -Pni|awk '/LISTEN/ && \$9!~/127.0.0.1/ && \$9!~/\[::1\]/{print \$9}'|uniq", $output);
exec("lsof -Pni|awk '/LISTEN/ && \$9!~/127.0.0.1/ && \$9!~/\\[::1\\]/{print \$9}'|uniq", $output);
$ethX = 'eth0';
$internalip = ipaddr($ethX);