diff options
author | Tobias Brunner <tobias@strongswan.org> | 2013-09-13 10:34:03 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2013-09-13 14:13:21 +0200 |
commit | f5dcb38ead5bf812e19acfa4c3b8867f3123f466 (patch) | |
tree | 2c3afbc22b283813a496d54e3fd7e492d56f5f02 | |
parent | 25260a290d495bbe1ae93f92852e57e2ff77e68b (diff) | |
download | strongswan-f5dcb38ead5bf812e19acfa4c3b8867f3123f466.tar.bz2 strongswan-f5dcb38ead5bf812e19acfa4c3b8867f3123f466.tar.xz |
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.
-rw-r--r-- | src/libhydra/plugins/resolve/resolve_handler.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libhydra/plugins/resolve/resolve_handler.c b/src/libhydra/plugins/resolve/resolve_handler.c index 6c57fa0bf..2eee854a9 100644 --- a/src/libhydra/plugins/resolve/resolve_handler.c +++ b/src/libhydra/plugins/resolve/resolve_handler.c @@ -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)) { |