Skip to content

Commit

Permalink
Optimization code
Browse files Browse the repository at this point in the history
  • Loading branch information
loyess committed Aug 4, 2020
1 parent 2211b39 commit b0abc7e
Show file tree
Hide file tree
Showing 9 changed files with 297 additions and 437 deletions.
4 changes: 2 additions & 2 deletions prepare/mos_tls_tunnel_prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ get_input_mirror_site(){
do
echo
echo -e "${Tip} 该站点建议满足(位于海外、支持HTTPS协议、会用来传输大流量... )的条件,默认站点,随意找的,不建议使用"
read -e -p "请输入你需要镜像到的站点(默认:https://www.bostonusa.com):" mirror_site
[ -z "${mirror_site}" ] && mirror_site="https://www.bostonusa.com"
read -e -p "请输入你需要镜像到的站点(默认:https://www.bing.com):" mirror_site
[ -z "${mirror_site}" ] && mirror_site="https://www.bing.com"
if [ -z "$(echo $mirror_site | grep -E ${HTTPS_DOMAIN_RE})" ]; then
echo
echo -e "${Error} 请输入以${Red} https:// ${suffix}开头,以${Red} 域名 ${suffix}结尾的URL."
Expand Down
4 changes: 2 additions & 2 deletions prepare/v2ray_plugin_prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ get_input_mirror_site(){
do
echo
echo -e "${Tip} 该站点建议满足(位于海外、支持HTTPS协议、会用来传输大流量... )的条件,默认站点,随意找的,不建议使用"
read -e -p "请输入你需要镜像到的站点(默认:https://www.bostonusa.com):" mirror_site
[ -z "${mirror_site}" ] && mirror_site="https://www.bostonusa.com"
read -e -p "请输入你需要镜像到的站点(默认:https://www.bing.com):" mirror_site
[ -z "${mirror_site}" ] && mirror_site="https://www.bing.com"
if [ -z "$(echo $mirror_site | grep -E ${HTTPS_DOMAIN_RE})" ]; then
echo
echo -e "${Error} 请输入以${Red} https:// ${suffix}开头,以${Red} 域名 ${suffix}结尾的URL."
Expand Down
Loading

0 comments on commit b0abc7e

Please sign in to comment.