更新 cns.sh
This commit is contained in:
parent
787b2606ca
commit
71b01f70f5
1 changed files with 7 additions and 7 deletions
14
cns.sh
14
cns.sh
|
|
@ -28,20 +28,20 @@ Error() {
|
|||
#Make cns start cmd
|
||||
Config() {
|
||||
[ -n "$cns_install_dir" ] && return #Variables come from the environment
|
||||
echo -n "Please input cns server port(If not need, please skip): "
|
||||
echo -n "请输入cns服务端口(如果不用请留空): "
|
||||
read cns_port
|
||||
echo -n "Please input cns encrypt password(If not need, please skip): "
|
||||
echo -n "请输入cns加密密码(默认不加密): "
|
||||
read cns_encrypt_password
|
||||
echo -n "Please input cns udp flag(Defaule is 'httpUDP'): "
|
||||
echo -n "请输入cns的udp标识(默认: 'httpUDP'): "
|
||||
read cns_udp_flag
|
||||
echo -n "Please input cns proxy key(Default is 'Meng'): "
|
||||
echo -n "请输入cns代理头域(默认: 'Meng'): "
|
||||
read cns_proxy_key
|
||||
echo -n "Please input tls server port(If not need, please skip): "
|
||||
echo -n "请输入tls服务端口(如果不用请留空): "
|
||||
read cns_tls_port
|
||||
echo -n "Please input cns install directory(difault is /usr/local/cns): "
|
||||
echo -n "请输入cns安装目录(默认/usr/local/cns): "
|
||||
read cns_install_dir
|
||||
echo "${cns_install_dir:=/usr/local/cns}"|grep -q '^/' || cns_install_dir="$PWD/$cns_install_dir"
|
||||
echo -n "Install UPX compress version?[n]: "
|
||||
echo -n "是否安装UPX压缩版?[n]: "
|
||||
read cns_UPX
|
||||
echo "$cns_UPX"|grep -qi '^y' && cns_UPX="upx" || cns_UPX=""
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue