mirror of
https://github.com/itdoginfo/podkop.git
synced 2025-12-07 20:16:53 +03:00
Fix global check text
This commit is contained in:
@@ -634,11 +634,9 @@ const showConfigModal = async (command, title) => {
|
|||||||
const data = await response.json();
|
const data = await response.json();
|
||||||
clearTimeout(timeoutId);
|
clearTimeout(timeoutId);
|
||||||
|
|
||||||
formattedOutput += '\n━━━━━━━━━━━━━━━━━━━━━━━━━━━\n';
|
|
||||||
formattedOutput += ' ➡️ ' + _('FAKEIP BROWSER TEST') + '\n';
|
|
||||||
|
|
||||||
if (data.fakeip === true) {
|
if (data.fakeip === true) {
|
||||||
formattedOutput += '✅ ' + _('FakeIP is working in browser!') + '\n';
|
formattedOutput += '\n✅ ' + _('FakeIP is working in browser!') + '\n';
|
||||||
} else {
|
} else {
|
||||||
formattedOutput += '❌ ' + _('FakeIP is not working in browser') + '\n';
|
formattedOutput += '❌ ' + _('FakeIP is not working in browser') + '\n';
|
||||||
formattedOutput += _('Check DNS server on current device (PC, phone)') + '\n';
|
formattedOutput += _('Check DNS server on current device (PC, phone)') + '\n';
|
||||||
|
|||||||
@@ -2158,7 +2158,9 @@ print_global() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
global_check() {
|
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 "🕳️ Podkop: $(opkg list-installed podkop | awk '{print $3}')"
|
||||||
print_global "🕳️ LuCI App: $(opkg list-installed luci-app-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}')"
|
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 "🛜 Device: $(cat /tmp/sysinfo/model)"
|
||||||
|
|
||||||
print_global "━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
print_global "━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
||||||
print_global " 📄 Podkop config"
|
print_global "📄 Podkop config"
|
||||||
show_config
|
show_config
|
||||||
|
|
||||||
print_global "━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
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
|
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:"
|
print_global "❌ /etc/resolv.conf contains external nameserver:"
|
||||||
@@ -2201,7 +2203,7 @@ global_check() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
print_global "━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
print_global "━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
||||||
print_global " 🧱 NFT table"
|
print_global "🧱 NFT table"
|
||||||
if ! nft list table inet PodkopTable >/dev/null 2>&1; then
|
if ! nft list table inet PodkopTable >/dev/null 2>&1; then
|
||||||
print_global "❌ PodkopTable not found"
|
print_global "❌ PodkopTable not found"
|
||||||
else
|
else
|
||||||
@@ -2209,7 +2211,7 @@ global_check() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
print_global "━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
print_global "━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
||||||
print_global " 📄 WAN config"
|
print_global "📄 WAN config"
|
||||||
if uci show network.wan >/dev/null 2>&1; then
|
if uci show network.wan >/dev/null 2>&1; then
|
||||||
awk '
|
awk '
|
||||||
/^config / {
|
/^config / {
|
||||||
@@ -2249,7 +2251,7 @@ global_check() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
print_global "━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
print_global "━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
||||||
print_global " 🔁 FakeIP"
|
print_global "🔁 FakeIP"
|
||||||
|
|
||||||
print_global "➡️ DNS resolution: system DNS server"
|
print_global "➡️ DNS resolution: system DNS server"
|
||||||
nslookup -timeout=2 $TEST_DOMAIN
|
nslookup -timeout=2 $TEST_DOMAIN
|
||||||
|
|||||||
Reference in New Issue
Block a user