From a4fdef26df6f18518bbc077085fa378dd5e20194 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Sun, 20 Nov 2016 11:26:56 +0100 Subject: [PATCH] guardian.cgi: Add localhost and multicast addresses for colorizing. Now the address for localhost and for multicast addresses are also covered and colorized in the section of ignored addresses. Signed-off-by: Stefan Schantl --- html/cgi-bin/guardian.cgi | 8 ++++++++ langs/en/cgi-bin/en.pl | 2 ++ 2 files changed, 10 insertions(+) diff --git a/html/cgi-bin/guardian.cgi b/html/cgi-bin/guardian.cgi index fab0c0ec20..fccfd47e22 100644 --- a/html/cgi-bin/guardian.cgi +++ b/html/cgi-bin/guardian.cgi @@ -1244,6 +1244,14 @@ sub GrabNetworks() { } } + # Add localhost. + my $localhost = "127.0.0.1/32"; + $networks{$localhost} = ["$Lang::tr{'localhost'}","$Header::colourfw"]; + + # Add Multicast addresses. + my $multicast = "224.0.0.0/239.0.0.0"; + $networks{$multicast} = ["$Lang::tr{'multicast'}","$Header::colourfw"]; + # Add OpenVPN tunnel connections. if (-e "${General::swroot}/ovpn/ccd.conf") { # Open the config file. diff --git a/langs/en/cgi-bin/en.pl b/langs/en/cgi-bin/en.pl index 7b66066d8d..b2c4b387b9 100644 --- a/langs/en/cgi-bin/en.pl +++ b/langs/en/cgi-bin/en.pl @@ -1453,6 +1453,7 @@ 'local subnet' => 'Local subnet:', 'local subnet is invalid' => 'Local subnet is invalid.', 'local vpn hostname/ip' => 'Local VPN Hostname/IP', +'localhost' => 'Localhost', 'localkey' => 'Localkey', 'localkeyfile' => 'Localkeyfile', 'log' => 'Log', @@ -1614,6 +1615,7 @@ 'mpfire songs' => 'MPFire songlist', 'mpfire webradio' => 'MPFire Webradio', 'mtu QoS' => 'This does not change the global MTU, it only sets MTU for QoS.', +'multicast' => 'Multicast', 'my new share' => 'My new share', 'name' => 'Name', 'name is invalid' => 'Name is invalid', -- 2.39.5