From 1e548dc68951cbe65d4c837706a4a49089c4f908 Mon Sep 17 00:00:00 2001 From: Randall Date: Fri, 5 Jul 2024 11:16:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20ssh/restrict=5Fssh=5Facces?= =?UTF-8?q?s/restrict=5Fssh=5Faccess.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ssh/restrict_ssh_access/restrict_ssh_access.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssh/restrict_ssh_access/restrict_ssh_access.sh b/ssh/restrict_ssh_access/restrict_ssh_access.sh index 51c2256..34c4854 100644 --- a/ssh/restrict_ssh_access/restrict_ssh_access.sh +++ b/ssh/restrict_ssh_access/restrict_ssh_access.sh @@ -1,7 +1,7 @@ #!/bin/bash # 获取命令行参数 -while getopts "4:6:" opt; do +while getopts ":4:6:" opt; do case $opt in 4) ALLOWED_IPV4="$OPTARG" ;;