Use case insensitive match in portsnap.

PR:		bin/186510
Submitted by:	olli
MFC after:	2 weeks
This commit is contained in:
Xin LI 2014-04-21 19:33:27 +00:00
parent 2aa76dba07
commit 236b00df63
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=264740

View File

@ -367,7 +367,7 @@ fetch_pick_server_init() {
# "$name server selection ..."; we allow either format.
MLIST="_http._tcp.${SERVERNAME}"
host -t srv "${MLIST}" |
sed -nE "s/${MLIST} (has SRV record|server selection) //p" |
sed -nE "s/${MLIST} (has SRV record|server selection) //Ip" |
cut -f 1,2,4 -d ' ' |
sed -e 's/\.$//' |
sort > serverlist_full