Fix check proxy address
parent
fd00a5a2ab
commit
72de43c3fd
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue