From 19a4c52aac2ee8b0779c4dfd145433823e379cf7 Mon Sep 17 00:00:00 2001 From: Ilia Rostovtsev Date: Thu, 21 May 2020 00:03:12 +0300 Subject: [PATCH] Use only ACLs to control network interfaces on Dashboard --- net/config | 1 - net/config.info | 1 - net/system_info.pl | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/net/config b/net/config index 9ecb3f4ad..56c61c18e 100644 --- a/net/config +++ b/net/config @@ -1,3 +1,2 @@ hosts_file=/etc/hosts def_netmask=255.255.255.0 -sysinfo=1 \ No newline at end of file diff --git a/net/config.info b/net/config.info index 3d6d21177..e96fd22d8 100644 --- a/net/config.info +++ b/net/config.info @@ -3,4 +3,3 @@ ipnodes_file=File listing IPv6 hosts and addresses,0 def_netmask=Default netmask,0 def_broadcast=Default broadcast address,0 def_mtu=Default MTU,0 -sysinfo=Show available network interfaces on Dashboard,1,1-Yes,0-No diff --git a/net/system_info.pl b/net/system_info.pl index 9d7d49366..8d0967ea9 100644 --- a/net/system_info.pl +++ b/net/system_info.pl @@ -4,7 +4,7 @@ sub list_system_info { my $can = &foreign_available($module_name) && $access{'sysinfo'}; - if ((length($config{'sysinfo'}) && !$config{'sysinfo'}) || !$can) { + if (!$can) { return (); } my %net_text = &load_language($module_name);