mirror of
https://github.com/SunBK201/UA3F.git
synced 2025-12-16 08:44:29 +00:00
fix: streamline stop_service by removing backend detection and ensuring cleanup
This commit is contained in:
parent
11b14bedbf
commit
7614f1e828
@ -309,12 +309,9 @@ start_service() {
|
||||
}
|
||||
|
||||
stop_service() {
|
||||
detect_backend
|
||||
if [ "$FW_BACKEND" = "nft" ]; then
|
||||
fw_revert_nft
|
||||
else
|
||||
fw_revert_ipt
|
||||
fi
|
||||
fw_revert_ipt >/dev/null 2>&1
|
||||
fw_revert_nft >/dev/null 2>&1
|
||||
rm -f "$IPSET_CREATED_FLAG" "$ROUTE_CREATED_FLAG"
|
||||
}
|
||||
|
||||
reload_service() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user