Skip to content

Commit

Permalink
fix read config issues. you need to uninstall and then reinstall !!!
Browse files Browse the repository at this point in the history
  • Loading branch information
233boy committed Apr 7, 2018
1 parent 57291e7 commit 22c30d7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions config/backup.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
2333
---- UUID -----
23332333-2333-2333-2333-233boy233boy
---- alterId -----
233
---- V2Ray 动态端口开始 -----
10000
---- V2Ray 动态端口结束 -----
Expand All @@ -43,5 +41,7 @@ false
false
---- 伪装的路径 -----
233blog
---- alterId -----
233
---- 伪装的网址 -----
https://liyafly.com
28 changes: 14 additions & 14 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="v1.65"
_version="v1.66"

cmd="apt-get"

Expand Down Expand Up @@ -49,18 +49,18 @@ if [[ -f /usr/bin/v2ray/v2ray && -f /etc/v2ray/config.json ]] && [[ -f $backup &
v2ray_transport=$(sed -n '17p' $backup)
v2ray_port=$(sed -n '19p' $backup)
v2ray_id=$(sed -n '21p' $backup)
alterId=$(sed -n '23p' $backup)
v2ray_dynamicPort_start=$(sed -n '25p' $backup)
v2ray_dynamicPort_end=$(sed -n '27p' $backup)
domain=$(sed -n '29p' $backup)
caddy_status=$(sed -n '31p' $backup)
shadowsocks_status=$(sed -n '33p' $backup)
ssport=$(sed -n '35p' $backup)
sspass=$(sed -n '37p' $backup)
ssciphers=$(sed -n '39p' $backup)
blocked_ad_status=$(sed -n '41p' $backup)
ws_path_status=$(sed -n '43p' $backup)
ws_path=$(sed -n '45p' $backup)
v2ray_dynamicPort_start=$(sed -n '23p' $backup)
v2ray_dynamicPort_end=$(sed -n '25p' $backup)
domain=$(sed -n '27p' $backup)
caddy_status=$(sed -n '29p' $backup)
shadowsocks_status=$(sed -n '31p' $backup)
ssport=$(sed -n '33p' $backup)
sspass=$(sed -n '35p' $backup)
ssciphers=$(sed -n '37p' $backup)
blocked_ad_status=$(sed -n '39p' $backup)
ws_path_status=$(sed -n '41p' $backup)
ws_path=$(sed -n '43p' $backup)
alterId=$(sed -n '45p' $backup)

v2ray_ver=$(/usr/bin/v2ray/v2ray -version | head -n 1 | cut -d " " -f2)

Expand Down Expand Up @@ -2017,7 +2017,7 @@ change_v2ray_alterId() {
echo "----------------------------------------------------------------"
echo
pause
sed -i "23s/$alterId/$new_alterId/" $backup
sed -i "45s/$alterId/$new_alterId/" $backup
alterId=$new_alterId
config
clear
Expand Down

0 comments on commit 22c30d7

Please sign in to comment.