diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2014-10-14 11:18:29 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2014-10-14 11:18:29 +0300 |
commit | 5c006a165577f2fa116c6d1cf3b34d959c01a1a2 (patch) | |
tree | 1b9feef7607bc47d83b69377b30cad9f79c6402d /whoseip | |
parent | 8ff3e5093c0ce807460cbc6b7d212622a112825d (diff) | |
download | dnstools-5c006a165577f2fa116c6d1cf3b34d959c01a1a2.tar.gz dnstools-5c006a165577f2fa116c6d1cf3b34d959c01a1a2.tar.bz2 |
whoseip: bugfixes.
* whoseip/whoseip.pl (str2ipv4): Fix a by-one error.
Fix documentation.
Diffstat (limited to 'whoseip')
-rw-r--r-- | whoseip/whoseip.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/whoseip/whoseip.pl b/whoseip/whoseip.pl index ca6ce17..0dffcf5 100644 --- a/whoseip/whoseip.pl +++ b/whoseip/whoseip.pl @@ -141,7 +141,7 @@ sub str2ipv4 { sub range2count { my @a = split /-/, shift; return 0 unless $#a == 1; - return str2ipv4($a[1]) - str2ipv4($a[0]); + return str2ipv4($a[1]) - str2ipv4($a[0]) + 1; } # ############ @@ -703,17 +703,17 @@ whoseip - return information about IP address B<whoiseip> [B<-dh>] [B<-F> I<FILE>] -[B<-f> I<FILE>] [B<-D> I<FILE>] +[B<-i> I<FILE>] [B<--debug>] [B<--define-format=>I<NAME>B<=>I<TEXT>] [B<--dump=>I<FILE>] [B<--fastcgi=>[I<SUFFIX...>]] -[B<--file=>I<FILE>] [B<--format=>I<TEXT>] [B<--format-file=>[I<NAME>B<=>]I<FILE>] [B<--formfile=>I<FILE>] [B<--help>] +[B<--ip-list=>I<FILE>] [B<--usage>] [I<IPADDR>...] |