resolve: Remove comment when using resolvconf(8)
Since comments in resolv.conf are only valid at the beginning of a line resolvconf(8) seems to have started treating any text after 'nameserver <ip>' as additional IP addresses for name servers. Since it ignores comments, and we can easily remove the added servers again, there is no point to add any. Fixes #410.
This commit is contained in:
@@ -170,8 +170,7 @@ static bool invoke_resolvconf(private_resolve_handler_t *this,
|
||||
return FALSE;
|
||||
}
|
||||
DBG1(DBG_IKE, "installing DNS server %H via resolvconf", addr);
|
||||
fprintf(out, "nameserver %H # by strongSwan, from %Y\n", addr,
|
||||
server);
|
||||
fprintf(out, "nameserver %H\n", addr);
|
||||
success = !ferror(out);
|
||||
if (pclose(out))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user