mirror of
https://github.com/rekryt/iplist.git
synced 2025-10-12 16:39:35 +03:00
refactor: short getEnv
This commit is contained in:
@@ -23,7 +23,7 @@ class DNSHelper {
|
||||
private bool $isUseIpv6;
|
||||
|
||||
public function __construct(private array $dnsServers = []) {
|
||||
$this->resolveDelay = (\OpenCCK\getEnv('SYS_DNS_RESOLVE_DELAY') ?? 500) / 1000;
|
||||
$this->resolveDelay = (getEnv('SYS_DNS_RESOLVE_DELAY') ?? 500) / 1000;
|
||||
$this->isUseIpv4 = (getEnv('SYS_DNS_RESOLVE_IP4') ?? 'true') == 'true';
|
||||
$this->isUseIpv6 = (getEnv('SYS_DNS_RESOLVE_IP6') ?? 'true') == 'true';
|
||||
}
|
||||
|
Reference in New Issue
Block a user