From f66c7e5a7bf6bc3cef886a24af312693823f55a5 Mon Sep 17 00:00:00 2001 From: calllivecn Date: Tue, 14 Nov 2017 17:01:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=AF=86=E7=A0=81=E8=BE=93?= =?UTF-8?q?=E5=85=A5=E9=9A=90=E8=97=8F.=20=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F?= =?UTF-8?q?=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=20diff=20--git=20a/setup-s?= =?UTF-8?q?sr-with-net=5Fspeeder.sh=20b/setup-ssr-with-net=5Fspeeder.sh=20?= =?UTF-8?q?index=2049f0464..f37d6d9=20100755=20---=20a/setup-ssr-with-net?= =?UTF-8?q?=5Fspeeder.sh=20+++=20b/setup-ssr-with-net=5Fspeeder.sh=20@@=20?= =?UTF-8?q?-1,8=20+1,16=20@@=20=20#!/bin/bash=20+=20+=20+getpass(){=20+=20?= =?UTF-8?q?=20=20=20stty=20-echo=20+=20=20=20=20read=20-p=20"=E8=BE=93?= =?UTF-8?q?=E5=85=A5=E5=AF=86=E7=A0=81:"=20passwd=20+=20=20=20=20stty=20ec?= =?UTF-8?q?ho=20+}=20+=20=20set=20-e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit echo "输入端口号" && read port -echo "输入密码" && read passwd +getpass echo "输入容器名" && read name method=('aes-128-ctr' 'aes-192-ctr' 'aes-256-ctr' 'aes-128-cfb' 'aes-192-cfb' 'aes-256-cfb' 'bf-cfb' 'camellia-128-cfb' 'camellia-192-cfb' 'camellia-256-cfb' 'chacha20' 'chacha20-ietf' 'rc4-md5' 'salsa20') --- setup-ssr-with-net_speeder.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/setup-ssr-with-net_speeder.sh b/setup-ssr-with-net_speeder.sh index 49f0464..f37d6d9 100755 --- a/setup-ssr-with-net_speeder.sh +++ b/setup-ssr-with-net_speeder.sh @@ -1,8 +1,16 @@ #!/bin/bash + + +getpass(){ + stty -echo + read -p "输入密码:" passwd + stty echo +} + set -e echo "输入端口号" && read port -echo "输入密码" && read passwd +getpass echo "输入容器名" && read name method=('aes-128-ctr' 'aes-192-ctr' 'aes-256-ctr' 'aes-128-cfb' 'aes-192-cfb' 'aes-256-cfb' 'bf-cfb' 'camellia-128-cfb' 'camellia-192-cfb' 'camellia-256-cfb' 'chacha20' 'chacha20-ietf' 'rc4-md5' 'salsa20')