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.
18 lines
746 B
18 lines
746 B
# custom inbounds config
|
|
if [[ -f /etc/v2ray/custom/in.json ]]; then
|
|
custom_config_file="/etc/v2ray/custom/in.json"
|
|
sed -i "/\/\/include_in_config/r $custom_config_file" $v2ray_server_config
|
|
sed -i "s#//include_in_config#,#" $v2ray_server_config
|
|
fi
|
|
# custom outbounds config
|
|
if [[ -f /etc/v2ray/custom/out.json ]]; then
|
|
custom_config_file="/etc/v2ray/custom/out.json"
|
|
sed -i "/\/\/include_out_config/r $custom_config_file" $v2ray_server_config
|
|
sed -i "s#//include_out_config#,#" $v2ray_server_config
|
|
fi
|
|
# custom rules
|
|
if [[ -f /etc/v2ray/custom/rules.json ]]; then
|
|
custom_rules_file="/etc/v2ray/custom/rules.json"
|
|
sed -i "/\/\/include_rules/r $custom_rules_file" $v2ray_server_config
|
|
sed -i "s#//include_rules#,#" $v2ray_server_config
|
|
fi |