mirror of
https://github.com/itdoginfo/podkop.git
synced 2025-12-06 19:46:52 +03:00
feat: add BOOTSTRAP_DNS_SERVER_OPTIONS to constants
This commit is contained in:
@@ -72,6 +72,16 @@ export const DNS_SERVER_OPTIONS = {
|
||||
'unfiltered.adguard-dns.com (AdGuard Unfiltered)',
|
||||
'family.adguard-dns.com': 'family.adguard-dns.com (AdGuard Family)',
|
||||
};
|
||||
export const BOOTSTRAP_DNS_SERVER_OPTIONS = {
|
||||
'77.88.8.8': '77.88.8.8 (Yandex DNS)',
|
||||
'77.88.8.1': '77.88.8.1 (Yandex DNS)',
|
||||
'1.1.1.1': '1.1.1.1 (Cloudflare DNS)',
|
||||
'1.0.0.1': '1.0.0.1 (Cloudflare DNS)',
|
||||
'8.8.8.8': '8.8.8.8 (Google DNS)',
|
||||
'8.8.4.4': '8.8.4.4 (Google DNS)',
|
||||
'9.9.9.9': '9.9.9.9 (Quad9 DNS)',
|
||||
'9.9.9.11': '9.9.9.11 (Quad9 DNS)',
|
||||
};
|
||||
|
||||
export const DIAGNOSTICS_UPDATE_INTERVAL = 10000; // 10 seconds
|
||||
export const CACHE_TIMEOUT = DIAGNOSTICS_UPDATE_INTERVAL - 1000; // 9 seconds
|
||||
|
||||
@@ -56,14 +56,9 @@ function createAdditionalSection(mainSection) {
|
||||
};
|
||||
|
||||
o = mainSection.taboption('additional', form.Value, 'bootstrap_dns_server', _('Bootstrap DNS server'), _('The DNS server used to look up the IP address of an upstream DNS server'));
|
||||
o.value('77.88.8.8', '77.88.8.8 (Yandex DNS)');
|
||||
o.value('77.88.8.1', '77.88.8.1 (Yandex DNS)');
|
||||
o.value('1.1.1.1', '1.1.1.1 (Cloudflare DNS)');
|
||||
o.value('1.0.0.1', '1.0.0.1 (Cloudflare DNS)');
|
||||
o.value('8.8.8.8', '8.8.8.8 (Google DNS)');
|
||||
o.value('8.8.4.4', '8.8.4.4 (Google DNS)');
|
||||
o.value('9.9.9.9', '9.9.9.9 (Quad9 DNS)');
|
||||
o.value('9.9.9.11', '9.9.9.11 (Quad9 DNS)');
|
||||
Object.entries(main.BOOTSTRAP_DNS_SERVER_OPTIONS).forEach(([key, label]) => {
|
||||
o.value(key, _(label));
|
||||
});
|
||||
o.default = '77.88.8.8';
|
||||
o.rmempty = false;
|
||||
o.ucisection = 'main';
|
||||
|
||||
@@ -148,6 +148,16 @@ var DNS_SERVER_OPTIONS = {
|
||||
"unfiltered.adguard-dns.com": "unfiltered.adguard-dns.com (AdGuard Unfiltered)",
|
||||
"family.adguard-dns.com": "family.adguard-dns.com (AdGuard Family)"
|
||||
};
|
||||
var BOOTSTRAP_DNS_SERVER_OPTIONS = {
|
||||
"77.88.8.8": "77.88.8.8 (Yandex DNS)",
|
||||
"77.88.8.1": "77.88.8.1 (Yandex DNS)",
|
||||
"1.1.1.1": "1.1.1.1 (Cloudflare DNS)",
|
||||
"1.0.0.1": "1.0.0.1 (Cloudflare DNS)",
|
||||
"8.8.8.8": "8.8.8.8 (Google DNS)",
|
||||
"8.8.4.4": "8.8.4.4 (Google DNS)",
|
||||
"9.9.9.9": "9.9.9.9 (Quad9 DNS)",
|
||||
"9.9.9.11": "9.9.9.11 (Quad9 DNS)"
|
||||
};
|
||||
var DIAGNOSTICS_UPDATE_INTERVAL = 1e4;
|
||||
var CACHE_TIMEOUT = DIAGNOSTICS_UPDATE_INTERVAL - 1e3;
|
||||
var ERROR_POLL_INTERVAL = 1e4;
|
||||
@@ -181,6 +191,7 @@ var COMMAND_SCHEDULING = {
|
||||
};
|
||||
return baseclass.extend({
|
||||
ALLOWED_WITH_RUSSIA_INSIDE,
|
||||
BOOTSTRAP_DNS_SERVER_OPTIONS,
|
||||
BUTTON_FEEDBACK_TIMEOUT,
|
||||
CACHE_TIMEOUT,
|
||||
COMMAND_SCHEDULING,
|
||||
|
||||
Reference in New Issue
Block a user