2 Commits

Author SHA1 Message Date
calllivecn
f66c7e5a7b 添加密码输入隐藏.
______________________
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')
2017-11-14 17:01:48 +08:00
ddv12138
2620c46fbe date 2017-09-11 13:57:03 +08:00