mirror of
https://github.com/YGGverse/net-php.git
synced 2025-03-13 05:51:23 +00:00
use build in ip6 validator
This commit is contained in:
parent
18ec72362e
commit
f6a3b1bbfa
@ -177,7 +177,7 @@ class Resolve
|
||||
|
||||
foreach ($data as $host)
|
||||
{
|
||||
if (false !== filter_var($host, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6))
|
||||
if (\Yggverse\Net\Valid::ip6($host))
|
||||
{
|
||||
$resolved->setHost(
|
||||
sprintf(
|
||||
|
Loading…
x
Reference in New Issue
Block a user