A very useful feature when displaying proxy logs, searching throught a lot of IP .
This mod displays IP in ascending sort order.
This mod should be easy to implement in a next update !
------------------- M O D -------------------------
In "logproxy.cgi", on line 358, change :
<< foreach my $ip (keys %ips) { >>
to :
<< my @sorted_ip = map {sprintf "%d.%d.%d.%d", split /./} sort map {sprintf "%03d.%03d.%03d.%03d", split /./} keys %ips; >>
<< foreach my $ip (@sorted_ip) { >>
.-------------------------------------------------------.
and the IP list in the interface IP dropbox will now be sorted !
Easier to search when there is a lot of users !
Should be updated to :
------------------- M O D -------------------------
In "logproxy.cgi", on line 358, change :
<< foreach my $ip (keys %ips) { >>
to :
<< my @sorted_ip = map {sprintf "%d.%d.%d.%d", split /[,.]/} sort map {sprintf "%03d.%03d.%03d.%03d", split /[,.]/} keys %ips; >>
<< foreach my $ip (@sorted_ip) { >>
.-------------------------------------------------------.
to acomodate with changes in new IPCop version (tested with version 2.1.9)