forked from 233boy/v2ray
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
233boy
committed
Feb 17, 2019
1 parent
e9ab14a
commit 9d6febc
Showing
15 changed files
with
81 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters