base: removed redundant code from is_ipv6
This commit is contained in:
parent
954fa45f2d
commit
149063d37f
@ -42,8 +42,7 @@ sub is_valid_ip {
|
|||||||
sub is_ipv6 {
|
sub is_ipv6 {
|
||||||
my ($self, $ip) = @_;
|
my ($self, $ip) = @_;
|
||||||
return if !$ip;
|
return if !$ip;
|
||||||
return 1 if Net::IP::ip_is_ipv6($ip);
|
return Net::IP::ip_is_ipv6($ip);
|
||||||
return;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
Loading…
Reference in New Issue
Block a user