bug fix
This commit is contained in:
@@ -1281,7 +1281,7 @@ config() {
|
|||||||
|
|
||||||
backup_config() {
|
backup_config() {
|
||||||
sed -i "18s/=1/=$v2ray_transport_opt/; 21s/=2333/=$v2ray_port/; 24s/=$old_id/=$uuid/" $backup
|
sed -i "18s/=1/=$v2ray_transport_opt/; 21s/=2333/=$v2ray_port/; 24s/=$old_id/=$uuid/" $backup
|
||||||
if [ $v2ray_transport_opt -ge 9 && $v2ray_transport_opt -le 15 ]; then
|
if [[ $v2ray_transport_opt -ge 9 && $v2ray_transport_opt -le 15 ]]; then
|
||||||
sed -i "30s/=10000/=$v2ray_dynamic_port_start_input/; 33s/=20000/=$v2ray_dynamic_port_end_input/" $backup
|
sed -i "30s/=10000/=$v2ray_dynamic_port_start_input/; 33s/=20000/=$v2ray_dynamic_port_end_input/" $backup
|
||||||
fi
|
fi
|
||||||
if [ $shadowsocks ]; then
|
if [ $shadowsocks ]; then
|
||||||
|
7
v2ray.sh
7
v2ray.sh
@@ -10,7 +10,7 @@ none='\e[0m'
|
|||||||
# Root
|
# Root
|
||||||
[[ $(id -u) != 0 ]] && echo -e " 哎呀……请使用 ${red}root ${none}用户运行 ${yellow}~(^_^) ${none}" && exit 1
|
[[ $(id -u) != 0 ]] && echo -e " 哎呀……请使用 ${red}root ${none}用户运行 ${yellow}~(^_^) ${none}" && exit 1
|
||||||
|
|
||||||
_version="v2.19"
|
_version="v2.20"
|
||||||
|
|
||||||
cmd="apt-get"
|
cmd="apt-get"
|
||||||
|
|
||||||
@@ -3608,7 +3608,10 @@ un | uninstall)
|
|||||||
;;
|
;;
|
||||||
reinstall)
|
reinstall)
|
||||||
uninstall_v2ray
|
uninstall_v2ray
|
||||||
[[ $is_uninstall_v2ray ]] && bash <(curl -s -L https://233blog.com/v2ray.sh)
|
if [[ $is_uninstall_v2ray ]]; then
|
||||||
|
cd; cd - >/dev/null 2>&1
|
||||||
|
bash <(curl -s -L https://233blog.com/v2ray.sh)
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
233 | 2333 | 233boy | 233blog | 233blog.com)
|
233 | 2333 | 233boy | 233blog | 233blog.com)
|
||||||
_boom_
|
_boom_
|
||||||
|
Reference in New Issue
Block a user