mirror of
https://github.com/YGGverse/net-php.git
synced 2026-03-31 09:05:34 +00:00
use build in ip6 validator
This commit is contained in:
parent
18ec72362e
commit
f6a3b1bbfa
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue