Compare commits

..

5 Commits

Author SHA1 Message Date
Andrey Petelin
a7b6c36dfb chore: set dns_server to 77.88.8.8 2026-01-29 12:03:25 +05:00
Kirill Sobakin
f39e2d9ca9 Merge pull request #307 from itdoginfo/fix/dns-check
fix: use nslookup_attempts for DNS check loop
2026-01-28 10:49:34 +03:00
Andrey Petelin
00594f23fd fix: use nslookup_attempts for DNS check loop instead of nslookup_timeout 2026-01-28 12:45:35 +05:00
Kirill Sobakin
0379cf5966 Merge pull request #304 from itdoginfo/fix/diagnostic-singbox-config
feat(diagnostic): stringify sb config json
2026-01-24 12:45:33 +03:00
divocatt
cfee6cec9a feat(diagnostic): stringify sb config json 2026-01-23 16:06:54 +02:00
4 changed files with 10 additions and 4 deletions

View File

@@ -288,7 +288,10 @@ async function handleShowSingBoxConfig() {
if (showSingBoxConfig.success) {
ui.showModal(
_('Show sing-box config'),
renderModal(showSingBoxConfig.data as string, 'show_sing_box_config'),
renderModal(
JSON.stringify(showSingBoxConfig.data, null, 2),
'show_sing_box_config',
),
);
} else {
logger.error(

View File

@@ -4164,7 +4164,10 @@ async function handleShowSingBoxConfig() {
if (showSingBoxConfig.success) {
ui.showModal(
_("Show sing-box config"),
renderModal(showSingBoxConfig.data, "show_sing_box_config")
renderModal(
JSON.stringify(showSingBoxConfig.data, null, 2),
"show_sing_box_config"
)
);
} else {
logger.error(

View File

@@ -1,6 +1,6 @@
config settings 'settings'
option dns_type 'udp'
option dns_server '8.8.8.8'
option dns_server '77.88.8.8'
option bootstrap_dns_server '77.88.8.8'
option dns_rewrite_ttl '60'
list source_network_interfaces 'br-lan'

View File

@@ -490,7 +490,7 @@ list_update() {
local i
# DNS Check
for i in $(seq 1 $nslookup_timeout); do
for i in $(seq 1 $nslookup_attempts); do
if nslookup -timeout=$nslookup_timeout openwrt.org > /dev/null 2>&1; then
echolog "✅ DNS check passed"
break