From 2b8208186db8e3432e243852ff1ad8467c25e39a Mon Sep 17 00:00:00 2001 From: itdoginfo Date: Fri, 2 May 2025 13:55:07 +0300 Subject: [PATCH] Fix global check text --- .../luci-static/resources/view/podkop/podkop.js | 4 +--- podkop/files/usr/bin/podkop | 14 ++++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js b/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js index 57895a4..d7329c6 100644 --- a/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js +++ b/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js @@ -634,11 +634,9 @@ const showConfigModal = async (command, title) => { const data = await response.json(); clearTimeout(timeoutId); - formattedOutput += '\n━━━━━━━━━━━━━━━━━━━━━━━━━━━\n'; - formattedOutput += ' ➡️ ' + _('FAKEIP BROWSER TEST') + '\n'; if (data.fakeip === true) { - formattedOutput += '✅ ' + _('FakeIP is working in browser!') + '\n'; + formattedOutput += '\n✅ ' + _('FakeIP is working in browser!') + '\n'; } else { formattedOutput += '❌ ' + _('FakeIP is not working in browser') + '\n'; formattedOutput += _('Check DNS server on current device (PC, phone)') + '\n'; diff --git a/podkop/files/usr/bin/podkop b/podkop/files/usr/bin/podkop index e9a8351..4092df7 100755 --- a/podkop/files/usr/bin/podkop +++ b/podkop/files/usr/bin/podkop @@ -2158,7 +2158,9 @@ print_global() { } global_check() { - print_global " 🛠️ System info" + print_global "📡 Global check run!" + print_global "━━━━━━━━━━━━━━━━━━━━━━━━━━━" + print_global "🛠️ System info" print_global "🕳️ Podkop: $(opkg list-installed podkop | awk '{print $3}')" print_global "🕳️ LuCI App: $(opkg list-installed luci-app-podkop | awk '{print $3}')" print_global "📦 Sing-box: $(sing-box version | head -n 1 | awk '{print $3}')" @@ -2166,11 +2168,11 @@ global_check() { print_global "🛜 Device: $(cat /tmp/sysinfo/model)" print_global "━━━━━━━━━━━━━━━━━━━━━━━━━━━" - print_global " 📄 Podkop config" + print_global "📄 Podkop config" show_config print_global "━━━━━━━━━━━━━━━━━━━━━━━━━━━" - print_global " 🔧 System check" + print_global "🔧 System check" if grep -E "^nameserver\s+([0-9]{1,3}\.){3}[0-9]{1,3}" "$RESOLV_CONF" | grep -vqE "127\.0\.0\.1|0\.0\.0\.0"; then print_global "❌ /etc/resolv.conf contains external nameserver:" @@ -2201,7 +2203,7 @@ global_check() { fi print_global "━━━━━━━━━━━━━━━━━━━━━━━━━━━" - print_global " 🧱 NFT table" + print_global "🧱 NFT table" if ! nft list table inet PodkopTable >/dev/null 2>&1; then print_global "❌ PodkopTable not found" else @@ -2209,7 +2211,7 @@ global_check() { fi print_global "━━━━━━━━━━━━━━━━━━━━━━━━━━━" - print_global " 📄 WAN config" + print_global "📄 WAN config" if uci show network.wan >/dev/null 2>&1; then awk ' /^config / { @@ -2249,7 +2251,7 @@ global_check() { fi print_global "━━━━━━━━━━━━━━━━━━━━━━━━━━━" - print_global " 🔁 FakeIP" + print_global "🔁 FakeIP" print_global "➡️ DNS resolution: system DNS server" nslookup -timeout=2 $TEST_DOMAIN