Browse Source

use build in ip6 validator

main
yggverse 9 months ago
parent
commit
f6a3b1bbfa
  1. 2
      src/Resolve.php

2
src/Resolve.php

@ -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…
Cancel
Save