]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
index.cgi: Show the WireGuard client pool
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 26 May 2025 09:39:28 +0000 (11:39 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 26 May 2025 09:39:28 +0000 (11:39 +0200)
This is in line with the other Roadwarrior pools.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/index.cgi

index 7eafd784c4ac6851076523c4e8619746f161a3dd..b3e1c3bd9454a54e497f7d03e955aed3f95f6c6b 100644 (file)
@@ -374,12 +374,14 @@ END
 
 # Show WireGuard status
 if (&Wireguard::is_enabled()) {
+       my $network = $Wireguard::settings{'CLIENT_POOL'};
+
        print<<END;
                <tr>
                        <td style='width:25%; text-align:center; background-color:$Header::colourwg;'>
                                <a href='/cgi-bin/wireguard.cgi' style='color:white'><b>$Lang::tr{'wg'}</b></a>
                        </td>
-                       <td style='width:30%; text-align:center;'></td>
+                       <td style='width:30%; text-align:center;'>$network</td>
                        <td style='width:45%; text-align:center; color:$Header::colourgreen;'>Online</td>
                </tr>
 END