mirror of
https://github.com/teddysun/across.git
synced 2025-11-07 04:05:34 +08:00
添加密码输入隐藏.
______________________
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')
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user