mirror of
https://github.com/OpenVPN/openvpn.git
synced 2026-06-09 08:59:57 -04:00
Log setting DNS via NRPT
Unlike other ways of setting DNS, we don't log anything when we use NRPT. Since dco-win/--dns is the recommended configuration and it uses NRPT to set DNS, let's log it. Change-Id: Ib2f30fe69cb676e347e4d59cd2db68db7568ba5b Signed-off-by: Lev Stipakov <lev@openvpn.net> Acked-by: Gert Doering <gert@greenie.muc.de> Message-Id: <20250803144950.21034-1-gert@greenie.muc.de> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg32480.html Signed-off-by: Gert Doering <gert@greenie.muc.de>
This commit is contained in:
parent
ad73d827d3
commit
ff371d1aaa
1 changed files with 5 additions and 0 deletions
|
|
@ -460,6 +460,11 @@ run_up_down_service(bool add, const struct options *o, const struct tuntap *tt)
|
|||
make_domain_list("dns search domains", search_domains, false,
|
||||
nrpt.search_domains, sizeof(nrpt.search_domains));
|
||||
|
||||
msg(D_LOW, "%s NRPT DNS%s%s on '%s' (if_index = %d) using service",
|
||||
(add ? "Setting" : "Deleting"), nrpt.resolve_domains[0] != 0 ? ", resolve domains" : "",
|
||||
nrpt.search_domains[0] != 0 ? ", search domains" : "",
|
||||
nrpt.iface.name, nrpt.iface.index);
|
||||
|
||||
send_msg_iservice(o->msg_channel, &nrpt, sizeof(nrpt), &ack, "DNS");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue