mirror of
https://github.com/YGGverse/net-php.git
synced 2025-09-08 03:52:16 +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)
|
foreach ($data as $host)
|
||||||
{
|
{
|
||||||
if (false !== filter_var($host, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6))
|
if (\Yggverse\Net\Valid::ip6($host))
|
||||||
{
|
{
|
||||||
$resolved->setHost(
|
$resolved->setHost(
|
||||||
sprintf(
|
sprintf(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user