Skip to content

Commit

Permalink
del invaild opt
Browse files Browse the repository at this point in the history
  • Loading branch information
233boy committed Feb 5, 2022
1 parent 79be7a1 commit ebd4ea9
Showing 1 changed file with 2 additions and 26 deletions.
28 changes: 2 additions & 26 deletions v2ray.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ none='\e[0m'
# Root
[[ $(id -u) != 0 ]] && echo -e " 哎呀……请使用 ${red}root ${none}用户运行 ${yellow}~(^_^) ${none}" && exit 1

_version="v3.50"
_version="v3.51"

cmd="apt-get"

Expand Down Expand Up @@ -2294,11 +2294,7 @@ other() {
echo
echo -e "$yellow 1. $none安装 BBR"
echo
echo -e "$yellow 2. $none安装 LotServer(锐速)"
echo
echo -e "$yellow 3. $none卸载 LotServer(锐速)"
echo
read -p "$(echo -e "请选择 [${magenta}1-3$none]:")" _opt
read -p "$(echo -e "请选择 [${magenta}1$none]:")" _opt
if [[ -z $_opt ]]; then
error
else
Expand All @@ -2307,14 +2303,6 @@ other() {
install_bbr
break
;;
2)
install_lotserver
break
;;
3)
uninstall_lotserver
break
;;
*)
error
;;
Expand All @@ -2335,18 +2323,6 @@ install_bbr() {
[[ ! $enable_bbr ]] && bash <(curl -s -L https://github.com/teddysun/across/raw/master/bbr.sh)
fi
}
install_lotserver() {
# https://moeclub.org/2017/03/08/14/
wget --no-check-certificate -qO /tmp/appex.sh "https://raw.githubusercontent.com/0oVicero0/serverSpeeder_Install/master/appex.sh"
bash /tmp/appex.sh 'install'
rm -rf /tmp/appex.sh
}
uninstall_lotserver() {
# https://moeclub.org/2017/03/08/14/
wget --no-check-certificate -qO /tmp/appex.sh "https://raw.githubusercontent.com/0oVicero0/serverSpeeder_Install/master/appex.sh"
bash /tmp/appex.sh 'uninstall'
rm -rf /tmp/appex.sh
}

update() {
while :; do
Expand Down

0 comments on commit ebd4ea9

Please sign in to comment.