simple update

pull/82/head
233boy 7 years ago
parent b6cd7d7845
commit c61978a684
  1. 8
      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="v1.3" _version="v1.31"
cmd="apt-get" cmd="apt-get"
@ -163,7 +163,9 @@ get_transport_args() {
esac esac
} }
create_vmess_URL_config() { create_vmess_URL_config() {
get_transport_args
[[ -z $net ]] && get_transport_args
if [[ $v2ray_transport == "4" ]]; then if [[ $v2ray_transport == "4" ]]; then
cat >/etc/v2ray/vmess_qr.json <<-EOF cat >/etc/v2ray/vmess_qr.json <<-EOF
{ {
@ -1936,8 +1938,6 @@ get_v2ray_config_info_link() {
} }
get_v2ray_config_qr_link() { get_v2ray_config_qr_link() {
get_transport_args
create_vmess_URL_config create_vmess_URL_config
if [[ $obfs ]]; then if [[ $obfs ]]; then

Loading…
Cancel
Save