fix(obfs): prevent Obfs usage when masquerade is enabled
This commit is contained in:
6
menu.sh
6
menu.sh
@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user