mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-10-27 07:33:32 +03:00
Undefined $host
This commit is contained in:
parent
f455aea5ff
commit
28fc6f5e0f
1 changed files with 1 additions and 1 deletions
|
|
@ -80,7 +80,7 @@ abstract class DNS
|
|||
public static function IP(string $domain): array
|
||||
{
|
||||
$ips = array();
|
||||
foreach (\dns_get_record($host, \DNS_A | (\AF_INET6 ? \DNS_AAAA : 0)) ?: array() as $record) {
|
||||
foreach (\dns_get_record($domain, \DNS_A | (\AF_INET6 ? \DNS_AAAA : 0)) ?: array() as $record) {
|
||||
if (!empty($record['ip'])) {
|
||||
$ips[] = $record['ip'];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue