From f6a3b1bbfa9f0b6f38616f64ab3b21be74253e51 Mon Sep 17 00:00:00 2001 From: yggverse Date: Sun, 7 Apr 2024 02:44:41 +0300 Subject: [PATCH] use build in ip6 validator --- src/Resolve.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Resolve.php b/src/Resolve.php index 1dd6492..933fa68 100644 --- a/src/Resolve.php +++ b/src/Resolve.php @@ -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(