Fix global check text

This commit is contained in:
itdoginfo
2025-05-02 13:55:07 +03:00
parent 17fb11baf0
commit 2b8208186d
2 changed files with 9 additions and 9 deletions

View File

@@ -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';

View File

@@ -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