mirror of
https://github.com/itdoginfo/podkop.git
synced 2025-12-12 14:37:03 +03:00
fix: change dns_on_router params
This commit is contained in:
@@ -34,12 +34,12 @@ export async function runDnsCheck() {
|
||||
const data = dnsChecks.data;
|
||||
|
||||
const allGood =
|
||||
Boolean(data.local_dns_status) &&
|
||||
Boolean(data.dns_on_router) &&
|
||||
Boolean(data.bootstrap_dns_status) &&
|
||||
Boolean(data.dns_status);
|
||||
|
||||
const atLeastOneGood =
|
||||
Boolean(data.local_dns_status) ||
|
||||
Boolean(data.dns_on_router) ||
|
||||
Boolean(data.bootstrap_dns_status) ||
|
||||
Boolean(data.dns_status);
|
||||
|
||||
@@ -80,7 +80,7 @@ export async function runDnsCheck() {
|
||||
value: `${data.dns_server} [${data.dns_type}]`,
|
||||
},
|
||||
{
|
||||
state: data.local_dns_status ? 'success' : 'error',
|
||||
state: data.dns_on_router ? 'success' : 'error',
|
||||
key: _('Local DNS'),
|
||||
value: '',
|
||||
},
|
||||
|
||||
@@ -148,7 +148,7 @@ export namespace Podkop {
|
||||
dns_type: 'udp' | 'doh' | 'dot';
|
||||
dns_server: string;
|
||||
dns_status: 0 | 1;
|
||||
local_dns_status: 0 | 1;
|
||||
dns_on_router: 0 | 1;
|
||||
bootstrap_dns_server: string;
|
||||
bootstrap_dns_status: 0 | 1;
|
||||
dhcp_has_dns_server: 0 | 1;
|
||||
|
||||
Reference in New Issue
Block a user