You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
v2ray/src/ban_ad.sh

7 lines
223 B

6 years ago
# ban ad
if [[ $ban_ad ]]; then
ban_ad_file="/etc/v2ray/233boy/v2ray/config/server/include/ad.json"
sed -i "/\/\/include_ban_ad/r $ban_ad_file" $v2ray_server_config
sed -i "s#//include_ban_ad#,#" $v2ray_server_config
fi