Accept square brackets in supplied IPv6 address

This commit is contained in:
Dirk 2018-09-14 16:33:09 +02:00
parent f2303637b9
commit 4722033f40

View File

@ -17172,6 +17172,9 @@ parse_cmd_line() {
DNS_VIA_PROXY=true
unset CMDLINE_IP
fi
# normalize any IPv6 address
CMDLINE_IP="${CMDLINE_IP//[/}"
CMDLINE_IP="${CMDLINE_IP//]/}"
;;
-n|--nodns|-n=*|--nodns=*)
NODNS="$(parse_opt_equal_sign "$1" "$2")"