Skip to content

Commit

Permalink
均衡负载test
Browse files Browse the repository at this point in the history
  • Loading branch information
KANIKIG committed Dec 13, 2020
1 parent a63f569 commit b1ccf29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gost.sh
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ function read_d_ip() {
elif [ "$flag_a" == "socks" ]; then
echo -e "-----------------------------------"
read -p "请输入socks用户名: " flag_c
elif [ "$flag_a" == "peer*" ]; then
elif [[ "$flag_a" == "peer"* ]]; then
read -e -p "请输入均衡负载配置文件名\n自定义但应不重复,不用输入后缀,例如peer1、peer2" flag_c
touch $flag_c.txt
echo -e "------------------------------------------------------------------"
Expand Down Expand Up @@ -258,7 +258,7 @@ function read_d_port() {
echo -e "------------------------------------------------------------------"
echo -e "请问你要设置socks代理服务的端口?"
read -p "请输入: " flag_d
elif [ "$flag_a" == "peer*" ]; then
elif [[ "$flag_a" == "peer"* ]]; then
peerip
echo -e "peer ://:port?ip=$flag_d.txt" >>$flag_d.txt
else
Expand Down

0 comments on commit b1ccf29

Please sign in to comment.