Fix check proxy address

pull/125/head
sunshineplan 2020-09-21 16:21:05 +08:00 committed by GitHub
parent fd00a5a2ab
commit 72de43c3fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ judgment_parameters() {
break
;;
'-p' | '--proxy')
if echo "${2:?undefine var}" | grep -qEo '^(https?|socks4a?|socks5h?):\/\/'; then
if ! echo "${2:?undefine var}" | grep -qEo '^(https?|socks4a?|socks5h?):\/\/'; then
echo 'error: Please specify the correct proxy server address.'
exit 1
fi