11 lines
436 B
Bash
11 lines
436 B
Bash
# Socks config
|
|
if [[ $socks ]]; then
|
|
socks_file="/etc/v2ray/233boy/v2ray/config/server/include/socks.json"
|
|
socks_file_tmp="/tmp/socks.json.tmp"
|
|
cp -f $socks_file $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 "s#//include_socks#,#" $v2ray_server_config
|
|
rm -rf $socks_file_tmp
|
|
fi
|