mirror of
https://github.com/unraid/webgui.git
synced 2026-05-03 00:09:27 -05:00
Fix PHP errors
This commit is contained in:
@@ -28,8 +28,8 @@ function port($eth) {
|
||||
}
|
||||
|
||||
exec("grep -Po 'nameserver \K\S+' /etc/resolv.conf 2>/dev/null",$ns);
|
||||
$eth = $_POST['port'];
|
||||
$vlan = $_POST['vlan'];
|
||||
$eth = $_POST['port'] ?? '';
|
||||
$vlan = $_POST['vlan'] ?? '';
|
||||
$port = port($eth).($vlan ? ".$vlan" : "");
|
||||
$v6on = trim(file_get_contents("/proc/sys/net/ipv6/conf/$port/disable_ipv6"))==='0';
|
||||
$none = _('None');
|
||||
|
||||
Reference in New Issue
Block a user