1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-29 16:44:03 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=252022

View File

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