Added update geo (menu)

This commit is contained in:
Whispering Wind
2024-12-28 23:10:00 +03:30
committed by GitHub
parent 863aa24496
commit e9c3e59658

15
menu.sh
View File

@ -707,9 +707,10 @@ display_advance_menu() {
echo -e "${cyan}[9] ${NC}↝ Change SNI Hysteria2" echo -e "${cyan}[9] ${NC}↝ Change SNI Hysteria2"
echo -e "${cyan}[10] ${NC}↝ Manage OBFS" echo -e "${cyan}[10] ${NC}↝ Manage OBFS"
echo -e "${cyan}[11] ${NC}↝ Change IPs(4-6)" echo -e "${cyan}[11] ${NC}↝ Change IPs(4-6)"
echo -e "${cyan}[12] ${NC}Restart Hysteria2" echo -e "${cyan}[12] ${NC}Update geo Files"
echo -e "${cyan}[13] ${NC}Update Core Hysteria2" echo -e "${cyan}[13] ${NC}Restart Hysteria2"
echo -e "${red}[14] ${NC}↝ Uninstall Hysteria2" echo -e "${cyan}[14] ${NC}↝ Update Core Hysteria2"
echo -e "${red}[15] ${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}"
@ -734,9 +735,10 @@ advance_menu() {
9) hysteria2_change_sni_handler ;; 9) hysteria2_change_sni_handler ;;
10) obfs_handler ;; 10) obfs_handler ;;
11) edit_ips ;; 11) edit_ips ;;
12) python3 $CLI_PATH restart-hysteria2 ;; 12) python3 $CLI_PATH update-geo ;;
13) python3 $CLI_PATH update-hysteria2 ;; 13) python3 $CLI_PATH restart-hysteria2 ;;
14) python3 $CLI_PATH uninstall-hysteria2 ;; 14) python3 $CLI_PATH update-hysteria2 ;;
15) python3 $CLI_PATH uninstall-hysteria2 ;;
0) return ;; 0) return ;;
*) echo "Invalid option. Please try again." ;; *) echo "Invalid option. Please try again." ;;
esac esac
@ -744,7 +746,6 @@ advance_menu() {
read -rp "Press Enter to continue..." read -rp "Press Enter to continue..."
done done
} }
# Main function to run the script # Main function to run the script
define_colors define_colors
main_menu main_menu