We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ext-filter
1 parent 8c8abce commit 89a4becCopy full SHA for 89a4bec
src/Factory.php
@@ -123,7 +123,7 @@ protected function resolveAddress($address)
123
protected function resolveHost($host)
124
{
125
// there's no need to resolve if the host is already given as an IP address
126
- if (false !== \filter_var($host, \FILTER_VALIDATE_IP)) {
+ if (@\inet_pton($host) !== false) {
127
return Promise\resolve($host);
128
}
129
0 commit comments