mirror of
https://github.com/rekryt/iplist.git
synced 2026-02-26 09:18:35 +03:00
feat: fix amphp/dns version to 2.4.0
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
"opencck/server": "v1.1.0",
|
"opencck/server": "v1.1.0",
|
||||||
"amphp/dns": "^2.2",
|
"amphp/dns": "v2.4.0",
|
||||||
"vlucas/phpdotenv": "^5.5",
|
"vlucas/phpdotenv": "^5.5",
|
||||||
"amphp/file": "^3.1",
|
"amphp/file": "^3.1",
|
||||||
"ext-fileinfo": "*",
|
"ext-fileinfo": "*",
|
||||||
|
|||||||
@@ -74,7 +74,8 @@ class DNSHelper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function loadConfig(): DnsConfig {
|
public function loadConfig(): DnsConfig {
|
||||||
return new DnsConfig($this->dnsServers, (new HostLoader())->loadHosts());
|
return (new DnsConfig($this->dnsServers, (new HostLoader())->loadHosts()))
|
||||||
|
->withAttempts(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user