mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Hostname specifications must allow commas in the value. They are
used to separate multiple host names. Noted by: Dan Nelson <dnelson@allantgroup.com> Reviewed by: roberto
This commit is contained in:
parent
2c6b49f6af
commit
f3a9f7841a
1 changed files with 2 additions and 1 deletions
|
|
@ -1487,7 +1487,8 @@ init(int signo)
|
|||
if (*p == '@')
|
||||
p = LocalHostName;
|
||||
for (i = 1; i < MAXHOSTNAMELEN - 1; i++) {
|
||||
if (!isalnum(*p) && *p != '.' && *p != '-')
|
||||
if (!isalnum(*p) && *p != '.' && *p != '-'
|
||||
&& *p != ',')
|
||||
break;
|
||||
host[i] = *p++;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue