Fix check proxy address (#125)
parent
3e49d5b2cb
commit
4163816e8b
|
@ -152,7 +152,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
|
||||
|
|
Loading…
Reference in New Issue