In latest downloads admin section:
http://site.com/?op=admin_downloads_all
How can I make the downloader ip search not absolute?
Example: there is this downloader ip, 123.45.67.890
I want it so if I search 123.45.67 it will show 123.45.67.890, 123.45.67.891, 123.45.67.892, etc.
I know this is just a simple sql syntax to change, so what do I change?
XFileSharing Pro - downloader ip search
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm
This is not easy since we keep IPs in integer binary form in DB. So need to use integer range to select all downloads from subnet.
This line is responsible for IP filter if you're interested:
This line is responsible for IP filter if you're interested:
Code: Select all
my $filter_ip = "AND i.ip=INET_ATON('$f->{ip}')" if $f->{ip}=~/^[\d\.]+$/;