From c8b51e28bff7d3a5196a22e52de9e245d249807b Mon Sep 17 00:00:00 2001 From: Alexander Marx Date: Thu, 10 Jul 2014 08:08:01 +0200 Subject: [PATCH] Openvpn: Change sortorder of client status and control Now every NET is sorted and second instance is the NAME of the VPN. --- html/cgi-bin/ovpnmain.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/cgi-bin/ovpnmain.cgi b/html/cgi-bin/ovpnmain.cgi index 0cb41696f..3f49dccc1 100644 --- a/html/cgi-bin/ovpnmain.cgi +++ b/html/cgi-bin/ovpnmain.cgi @@ -5041,7 +5041,7 @@ END my $id = 0; my $gif; my $col1=""; - foreach my $key (sort { ncmp ($confighash{$a}[3],$confighash{$b}[3]) } sort { ncmp ($confighash{$a}[1],$confighash{$b}[1]) } keys %confighash) { + foreach my $key (sort { ncmp ($confighash{$a}[32],$confighash{$b}[32]) } sort { ncmp ($confighash{$a}[1],$confighash{$b}[1]) } keys %confighash) { if ($confighash{$key}[0] eq 'on') { $gif = 'on.gif'; } else { $gif = 'off.gif'; } if ($id % 2) { print ""; -- 2.39.2