fix(obfs): prevent Obfs usage when masquerade is enabled

This commit is contained in:
ReturnFI
2025-12-11 15:49:06 +00:00
parent 4a703b4ecb
commit 7816192d66

View File

@ -857,7 +857,6 @@ webpanel_handler() {
done done
} }
obfs_handler() { obfs_handler() {
while true; do while true; do
echo -e "${cyan}1.${NC} Remove Obfs" echo -e "${cyan}1.${NC} Remove Obfs"
@ -870,7 +869,12 @@ obfs_handler() {
python3 $CLI_PATH manage_obfs -r python3 $CLI_PATH manage_obfs -r
;; ;;
2) 2)
status=$(python3 $CLI_PATH masquerade -s)
if [[ "$status" == "Enabled" ]]; then
echo -e "${red}Error:${NC} Cannot use Obfs when masquerade is enabled."
else
python3 $CLI_PATH manage_obfs -g python3 $CLI_PATH manage_obfs -g
fi
;; ;;
0) 0)
break break