Add OBFS Manager
This commit is contained in:
35
menu.sh
35
menu.sh
@ -465,6 +465,31 @@ normalsub_handler() {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
obfs_handler() {
|
||||||
|
while true; do
|
||||||
|
echo -e "${cyan}1.${NC} Remove Obfs"
|
||||||
|
echo -e "${red}2.${NC} Generating new Obfs"
|
||||||
|
echo "0. Back"
|
||||||
|
read -p "Choose an option: " option
|
||||||
|
|
||||||
|
case $option in
|
||||||
|
1)
|
||||||
|
python3 $CLI_PATH manage_obfs -r
|
||||||
|
;;
|
||||||
|
2)
|
||||||
|
python3 $CLI_PATH manage_obfs -g
|
||||||
|
;;
|
||||||
|
0)
|
||||||
|
break
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Invalid option. Please try again."
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
# Function to display the main menu
|
# Function to display the main menu
|
||||||
display_main_menu() {
|
display_main_menu() {
|
||||||
clear
|
clear
|
||||||
@ -578,8 +603,9 @@ display_advance_menu() {
|
|||||||
echo -e "${green}[7] ${NC}↝ Normal-SUB SubLink"
|
echo -e "${green}[7] ${NC}↝ Normal-SUB SubLink"
|
||||||
echo -e "${cyan}[8] ${NC}↝ Change Port Hysteria2"
|
echo -e "${cyan}[8] ${NC}↝ Change Port Hysteria2"
|
||||||
echo -e "${cyan}[9] ${NC}↝ Change SNI Hysteria2"
|
echo -e "${cyan}[9] ${NC}↝ Change SNI Hysteria2"
|
||||||
echo -e "${cyan}[10] ${NC}↝ Update Core Hysteria2"
|
echo -e "${cyan}[10] ${NC}↝ Manage OBFS"
|
||||||
echo -e "${red}[11] ${NC}↝ Uninstall Hysteria2"
|
echo -e "${cyan}[11] ${NC}↝ Update Core Hysteria2"
|
||||||
|
echo -e "${red}[12] ${NC}↝ Uninstall Hysteria2"
|
||||||
echo -e "${red}[0] ${NC}↝ Back to Main Menu"
|
echo -e "${red}[0] ${NC}↝ Back to Main Menu"
|
||||||
echo -e "${LPurple}◇──────────────────────────────────────────────────────────────────────◇${NC}"
|
echo -e "${LPurple}◇──────────────────────────────────────────────────────────────────────◇${NC}"
|
||||||
echo -ne "${yellow}➜ Enter your option: ${NC}"
|
echo -ne "${yellow}➜ Enter your option: ${NC}"
|
||||||
@ -602,8 +628,9 @@ advance_menu() {
|
|||||||
7) normalsub_handler ;;
|
7) normalsub_handler ;;
|
||||||
8) hysteria2_change_port_handler ;;
|
8) hysteria2_change_port_handler ;;
|
||||||
9) hysteria2_change_sni_handler ;;
|
9) hysteria2_change_sni_handler ;;
|
||||||
10) python3 $CLI_PATH update-hysteria2 ;;
|
10) obfs_handler ;;
|
||||||
11) python3 $CLI_PATH uninstall-hysteria2 ;;
|
11) python3 $CLI_PATH update-hysteria2 ;;
|
||||||
|
12) python3 $CLI_PATH uninstall-hysteria2 ;;
|
||||||
0) return ;;
|
0) return ;;
|
||||||
*) echo "Invalid option. Please try again." ;;
|
*) echo "Invalid option. Please try again." ;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
Reference in New Issue
Block a user