Skip to content

Commit

Permalink
纯真网络2020年6月25日IP数据
Browse files Browse the repository at this point in the history
  • Loading branch information
leolovenet committed Jul 3, 2020
1 parent 4890af5 commit 20190aa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions lib/IP/QQWry/Dumper.pm
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,6 @@ use Socket;

use feature qw(say);

sub _str {
my $self = shift;
my $str = ""; # fix SUPER class "uninitialized value" warning
my $tmp;

read $self->{fh}, $tmp, 1;
while (ord $tmp > 0) {
$str .= $tmp;
read $self->{fh}, $tmp, 1;
}

return $str;
}

# https://www.perl.com/article/creating-ip-address-tools-from-scratch/
sub long2ip {
my $decimal = shift;
Expand Down Expand Up @@ -124,4 +110,4 @@ sub dump {

1;

__END__
__END__
Binary file modified qqwry.mmdb
Binary file not shown.

0 comments on commit 20190aa

Please sign in to comment.