mirror of
https://github.com/itdoginfo/podkop.git
synced 2025-12-12 14:37:03 +03:00
feat: actualize dns checks
This commit is contained in:
@@ -35,13 +35,13 @@ export async function runDnsCheck() {
|
||||
|
||||
const allGood =
|
||||
Boolean(data.dns_on_router) &&
|
||||
Boolean(data.dhcp_has_dns_server) &&
|
||||
Boolean(data.dhcp_config_status) &&
|
||||
Boolean(data.bootstrap_dns_status) &&
|
||||
Boolean(data.dns_status);
|
||||
|
||||
const atLeastOneGood =
|
||||
Boolean(data.dns_on_router) ||
|
||||
Boolean(data.dhcp_has_dns_server) ||
|
||||
Boolean(data.dhcp_config_status) ||
|
||||
Boolean(data.bootstrap_dns_status) ||
|
||||
Boolean(data.dns_status);
|
||||
|
||||
@@ -87,7 +87,7 @@ export async function runDnsCheck() {
|
||||
value: '',
|
||||
},
|
||||
{
|
||||
state: data.dhcp_has_dns_server ? 'success' : 'error',
|
||||
state: data.dhcp_config_status ? 'success' : 'error',
|
||||
key: _('DHCP has DNS server'),
|
||||
value: '',
|
||||
},
|
||||
|
||||
@@ -152,7 +152,7 @@ export namespace Podkop {
|
||||
dns_on_router: 0 | 1;
|
||||
bootstrap_dns_server: string;
|
||||
bootstrap_dns_status: 0 | 1;
|
||||
dhcp_has_dns_server: 0 | 1;
|
||||
dhcp_config_status: 0 | 1;
|
||||
}
|
||||
|
||||
export interface NftRulesCheckResult {
|
||||
|
||||
Reference in New Issue
Block a user