update
This commit is contained in:
@@ -1,6 +1,14 @@
|
||||
|
||||
# vmess
|
||||
_load vmess-config.sh
|
||||
# ss
|
||||
_load ss-config.sh
|
||||
|
||||
# socks
|
||||
_load socks-config.sh
|
||||
|
||||
# mtproto
|
||||
_load mtproto-config.sh
|
||||
|
||||
# ban domain
|
||||
_load ban_xx.sh
|
||||
@@ -11,17 +19,5 @@ _load ban_bt.sh
|
||||
# ban ad
|
||||
_load ban_ad.sh
|
||||
|
||||
# custom rules
|
||||
_load custom_rules.sh
|
||||
|
||||
# ss
|
||||
_load ss-config.sh
|
||||
|
||||
# socks
|
||||
_load socks-config.sh
|
||||
|
||||
# mtproto
|
||||
_load mtproto-config.sh
|
||||
|
||||
# custom config
|
||||
_load custom_config.sh
|
||||
|
@@ -1,6 +1,18 @@
|
||||
# custom config
|
||||
if [[ -f /etc/v2ray/custom/config.json ]]; then
|
||||
custom_config_file="/etc/v2ray/custom/config.json"
|
||||
sed -i "/\/\/include_config/r $custom_config_file" $v2ray_server_config
|
||||
sed -i "s#//include_config#,#" $v2ray_server_config
|
||||
# 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
|
@@ -1,6 +0,0 @@
|
||||
# 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
|
Reference in New Issue
Block a user