Allow ':' and '%' in hostname specifications so that we can specify IPv6
addresses and scope IDs. MFC after: 3 weeks
This commit is contained in:
parent
4f2a7ca189
commit
f56bb70ae6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=139384
@ -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++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user