dont complain about comments in resolv.conf

SVN revision: 16257
This commit is contained in:
stffrdhrn 2005-08-21 15:46:57 +00:00 committed by stffrdhrn
parent e8973254f1
commit 6b56f53ea9
1 changed files with 5 additions and 1 deletions

View File

@ -121,7 +121,11 @@ ecore_con_dns_init(void)
if (p2)
*p2 = 0;
if (!strncmp(buf, "nameserver", 10))
if (!strncmp(buf, ";", 1))
{
/* Ignore comment */
}
else if (!strncmp(buf, "nameserver", 10))
{
if (_server_count >= SERVERS) continue;