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" ;;