Allow ':' and '%' in hostname specifications so that we can specify IPv6

addresses and scope IDs.

MFC after:	3 weeks
This commit is contained in:
David Malone 2004-12-28 22:25:04 +00:00
parent 4f2a7ca189
commit f56bb70ae6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=139384

View File

@ -1593,7 +1593,7 @@ init(int signo)
p = LocalHostName;
for (i = 1; i < MAXHOSTNAMELEN - 1; i++) {
if (!isalnum(*p) && *p != '.' && *p != '-'
&& *p != ',')
&& *p != ',' && *p != ':' && *p != '%')
break;
host[i] = *p++;
}