Fix a code typo in a case-statement match expression that prevented IPv6

URLs with port designator from working properly (e.g. http://[::1]:80/).
This commit is contained in:
Devin Teske 2013-06-20 07:29:42 +00:00
parent e269422b91
commit 403c4b46e0

View File

@ -81,7 +81,7 @@ f_media_set_http_proxy()
hostname="${hostname#\[}"
hostname="${hostname%\]}"
;;
"["*"]:")
"["*"]:"*)
hostname="${hostname#\[}"
port="${hostname#*\]:}"
port="${port%%[!0-9]*}"