| View previous topic :: View next topic |
| Author |
Message |
qq_bbq
Joined: 05 Jul 2009 Posts: 114
|
Posted: Feb 23, 2010 7:23 am Post subject: downloader ip search |
|
|
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? |
|
| Back to top |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 2109 Location: UFO Lab
|
Posted: Feb 23, 2010 5:26 pm Post subject: |
|
|
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: | | my $filter_ip = "AND i.ip=INET_ATON('$f->{ip}')" if $f->{ip}=~/^[\d\.]+$/; |
|
|
| Back to top |
|
 |
|