]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commitdiff
guardian.cgi: Add localhost and multicast addresses for colorizing.
authorStefan Schantl <stefan.schantl@ipfire.org>
Sun, 20 Nov 2016 10:26:56 +0000 (11:26 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sun, 20 Nov 2016 10:26:56 +0000 (11:26 +0100)
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 <stefan.schantl@ipfire.org>
html/cgi-bin/guardian.cgi
langs/en/cgi-bin/en.pl

index fab0c0ec20a291961c3cabb68a5c96b4097c9e86..fccfd47e2278d415df0728dd9ea1c7a42506bfb9 100644 (file)
@@ -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.
index 7b66066d8df3e1bde45dd8f588bd4c2c86d338cc..b2c4b387b9e8274e874650bbb396b874dca48715 100644 (file)
 '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',
 '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',