XFileSharing Pro - downloader ip search

Posts: 122
Joined: Jul 05, 2009 11:33 pm

downloader ip search

#1 Postby qq_bbq » Feb 23, 2010 7:23 am

In latest downloads admin section:

How can I make the downloader ip search not absolute?
Example: there is this downloader ip,

I want it so if I search 123.45.67 it will show,,, etc.

I know this is just a simple sql syntax to change, so what do I change?

User avatar
Posts: 2187
Joined: Mar 22, 2006 1:39 pm

#2 Postby PilgrimX182 » Feb 23, 2010 5:26 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:

Code: Select all

my $filter_ip = "AND i.ip=INET_ATON('$f->{ip}')" if $f->{ip}=~/^[\d\.]+$/;

Return to “XFileSharing Pro”