|
|
@ -3,7 +3,7 @@ if [[ $socks ]]; then |
|
|
|
socks_file="/etc/v2ray/233boy/v2ray/config/server/include/socks.json" |
|
|
|
socks_file="/etc/v2ray/233boy/v2ray/config/server/include/socks.json" |
|
|
|
socks_file_tmp="/tmp/socks.json.tmp" |
|
|
|
socks_file_tmp="/tmp/socks.json.tmp" |
|
|
|
cp -f $socks_file $socks_file_tmp |
|
|
|
cp -f $socks_file $socks_file_tmp |
|
|
|
sed -i "s/6666/$socks_port/; s/v2ray66.com/$socks_username/; s/233blog.com/$socks_userpass/" $socks_file_tmp |
|
|
|
sed -i "s/6666/$socks_port/; s/233v2.com/$socks_username/; s/233blog.com/$socks_userpass/" $socks_file_tmp |
|
|
|
sed -i "/\/\/include_socks/r $socks_file_tmp" $v2ray_server_config |
|
|
|
sed -i "/\/\/include_socks/r $socks_file_tmp" $v2ray_server_config |
|
|
|
sed -i "s#//include_socks#,#" $v2ray_server_config |
|
|
|
sed -i "s#//include_socks#,#" $v2ray_server_config |
|
|
|
rm -rf $socks_file_tmp |
|
|
|
rm -rf $socks_file_tmp |
|
|
|