mirror of
https://github.com/itdoginfo/podkop.git
synced 2025-12-06 11:36:50 +03:00
fix: rm check_sing_box_connections
This commit is contained in:
@@ -1652,25 +1652,6 @@ check_dnsmasq() {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
check_sing_box_connections() {
|
|
||||||
nolog "Checking sing-box connections..."
|
|
||||||
|
|
||||||
if ! command -v netstat > /dev/null 2>&1; then
|
|
||||||
nolog "netstat is not installed"
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
local connections=$(netstat -tuanp | grep sing-box)
|
|
||||||
if [ -z "$connections" ]; then
|
|
||||||
nolog "No active sing-box connections found"
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "$connections" | while read -r line; do
|
|
||||||
nolog "$line"
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
check_logs() {
|
check_logs() {
|
||||||
if ! command -v logread > /dev/null 2>&1; then
|
if ! command -v logread > /dev/null 2>&1; then
|
||||||
nolog "Error: logread command not found"
|
nolog "Error: logread command not found"
|
||||||
@@ -2562,7 +2543,6 @@ Available commands:
|
|||||||
check_sing_box Check sing-box installation and status
|
check_sing_box Check sing-box installation and status
|
||||||
check_github Check GitHub connectivity
|
check_github Check GitHub connectivity
|
||||||
check_logs Show podkop logs from system journal
|
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_sing_box_logs Show sing-box logs
|
||||||
check_dnsmasq Check DNSMasq configuration
|
check_dnsmasq Check DNSMasq configuration
|
||||||
check_fakeip Test FakeIP on router
|
check_fakeip Test FakeIP on router
|
||||||
@@ -2617,9 +2597,6 @@ check_github)
|
|||||||
check_logs)
|
check_logs)
|
||||||
check_logs
|
check_logs
|
||||||
;;
|
;;
|
||||||
check_sing_box_connections)
|
|
||||||
check_sing_box_connections
|
|
||||||
;;
|
|
||||||
check_sing_box_logs)
|
check_sing_box_logs)
|
||||||
check_sing_box_logs
|
check_sing_box_logs
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user