mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-17 13:53:39 +00:00
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 a new issue