From 25bb2355aa0b8e6c9af232b2a6c0679d30f493f5 Mon Sep 17 00:00:00 2001 From: Kirill Sobakin Date: Thu, 23 Oct 2025 12:47:45 +0300 Subject: [PATCH] fix: rm check_github, check_dnsmasq --- fe-app-podkop/src/podkop/types.ts | 3 -- podkop/files/usr/bin/podkop | 51 ------------------------------- 2 files changed, 54 deletions(-) diff --git a/fe-app-podkop/src/podkop/types.ts b/fe-app-podkop/src/podkop/types.ts index fb30465..9b8aefd 100644 --- a/fe-app-podkop/src/podkop/types.ts +++ b/fe-app-podkop/src/podkop/types.ts @@ -34,11 +34,8 @@ export namespace Podkop { // check_nft Check NFT rules // check_nft_rules Check NFT rules status // check_sing_box Check sing-box installation and status - // check_github Check GitHub connectivity // check_logs Show podkop logs from system journal - // check_sing_box_connections Show active sing-box connections // check_sing_box_logs Show sing-box logs - // check_dnsmasq Check DNSMasq configuration // check_fakeip Test FakeIP on router // clash_api Clash API interface for managing proxies and groups // show_config Display current podkop configuration diff --git a/podkop/files/usr/bin/podkop b/podkop/files/usr/bin/podkop index 37414d4..a87551b 100755 --- a/podkop/files/usr/bin/podkop +++ b/podkop/files/usr/bin/podkop @@ -1613,49 +1613,6 @@ check_nft() { nolog "NFT check completed" } -check_github() { - nolog "Checking GitHub connectivity..." - - if ! curl -m 3 github.com; then - nolog "Error: Cannot connect to GitHub" - return 1 - fi - nolog "GitHub is accessible" - - nolog "Checking lists availability:" - for url in "$DOMAINS_RU_INSIDE" "$DOMAINS_RU_OUTSIDE" "$DOMAINS_UA" "$DOMAINS_YOUTUBE" \ - "$SUBNETS_TWITTER" "$SUBNETS_META" "$SUBNETS_DISCORD"; do - local list_name=$(basename "$url") - - config_get_bool download_lists_via_proxy "settings" "download_lists_via_proxy" "0" - if [ "$download_lists_via_proxy" -eq 1 ]; then - http_proxy="http://127.0.0.1:4534" https_proxy="http://127.0.0.1:4534" wget -q -O /dev/null "$url" - else - wget -q -O /dev/null "$url" - fi - - if [ $? -eq 0 ]; then - nolog "- $list_name: available" - else - nolog "- $list_name: not available" - fi - done -} - -check_dnsmasq() { - nolog "Checking dnsmasq configuration..." - - local config=$(uci show dhcp.@dnsmasq[0]) - if [ -z "$config" ]; then - nolog "No dnsmasq configuration found" - return 1 - fi - - echo "$config" | while IFS='=' read -r key value; do - nolog "$key = $value" - done -} - check_logs() { if ! command -v logread > /dev/null 2>&1; then nolog "Error: logread command not found" @@ -2545,10 +2502,8 @@ Available commands: check_nft Check NFT rules check_nft_rules Check NFT rules status check_sing_box Check sing-box installation and status - check_github Check GitHub connectivity check_logs Show podkop logs from system journal check_sing_box_logs Show sing-box logs - check_dnsmasq Check DNSMasq configuration check_fakeip Test FakeIP on router clash_api Clash API interface for managing proxies and groups show_config Display current podkop configuration @@ -2595,18 +2550,12 @@ check_nft_rules) check_sing_box) check_sing_box ;; -check_github) - check_github - ;; check_logs) check_logs ;; check_sing_box_logs) check_sing_box_logs ;; -check_dnsmasq) - check_dnsmasq - ;; check_fakeip) check_fakeip ;;