Lists of IPs should be comma-separated rather than semicolon or

space-separated.
This commit is contained in:
Nicholas J. Kain
2013-05-10 13:46:58 -04:00
parent 1fc06c6e4f
commit 62d69e1909
2 changed files with 7 additions and 8 deletions

View File

@@ -182,7 +182,7 @@ static void write_resolve_conf(struct ifchd_client *cl)
char *p = cl->namesvrs;
while (p && (*p != '\0')) {
char *q = strchr(p, ' ');
char *q = strchr(p, ',');
if (!q)
q = strchr(p, '\0');
else
@@ -199,7 +199,7 @@ static void write_resolve_conf(struct ifchd_client *cl)
p = cl->domains;
int numdoms = 0;
while (p && (*p != '\0')) {
char *q = strchr(p, ' ');
char *q = strchr(p, ',');
if (!q)
q = strchr(p, '\0');
else