feat: fix amphp/dns version to 2.4.0

This commit is contained in:
Rekryt
2026-01-18 16:23:25 +03:00
parent 6616bee53d
commit a2d4eb8025
2 changed files with 3 additions and 2 deletions

View File

@@ -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": "*",

View File

@@ -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);
} }
} }
) )