Hotfix: Prevent masquerade enable when webpanel active
This commit is contained in:
12
menu.sh
12
menu.sh
@ -754,11 +754,15 @@ masquerade_handler() {
|
|||||||
|
|
||||||
case $option in
|
case $option in
|
||||||
1)
|
1)
|
||||||
read -p "Enter the URL for rewriteHost: " url
|
if systemctl is-active --quiet hysteria-webpanel.service; then
|
||||||
if [ -z "$url" ]; then
|
echo -e "${red}Error:${NC} Masquerade cannot be enabled because hysteria-webpanel.service is running."
|
||||||
echo "Error: URL cannot be empty. Please try again."
|
|
||||||
else
|
else
|
||||||
python3 $CLI_PATH masquerade -e "$url"
|
read -p "Enter the URL for rewriteHost: " url
|
||||||
|
if [ -z "$url" ]; then
|
||||||
|
echo "Error: URL cannot be empty. Please try again."
|
||||||
|
else
|
||||||
|
python3 $CLI_PATH masquerade -e "$url"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
2)
|
2)
|
||||||
|
|||||||
Reference in New Issue
Block a user