mirror of
https://github.com/YGGverse/net-php.git
synced 2026-03-31 17:15:35 +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)
|
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…
Add table
Add a link
Reference in a new issue