mirror of
https://github.com/unraid/webgui.git
synced 2026-05-06 20:30:50 -05:00
Prepare access for IPv6 only and variable interface
This commit is contained in:
@@ -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];
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user