Attention is currently required from: Arne Schwabe.
Hello Arne Schwabe,
I'd like you to do a code review.
Please visit
https://gerrit.openvpn.net/c/openvpn/+/2360?usp=email
to review the following change.
Change subject: options: preserve --dns-updown across PUSH_UPDATE
......................................................................
options: preserve --dns-updown across PUSH_UPDATE
Reset DNS records without clearing the local DNS up/down command
and flags when PUSH_UPDATE replaces or removes DNS options.
Change-Id: Ib20f4965f25472f47b98981d54eaf4e2269d7408
Signed-off-by: Marco Baffo <[email protected]>
---
M src/openvpn/options.c
1 file changed, 8 insertions(+), 2 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/60/2360/1
diff --git a/src/openvpn/options.c b/src/openvpn/options.c
index 1e0b4d8..05f5d55 100644
--- a/src/openvpn/options.c
+++ b/src/openvpn/options.c
@@ -3619,8 +3619,14 @@
static void
reset_dns_options(struct options *options)
{
- gc_free(&options->dns_options.gc);
- CLEAR(options->dns_options);
+ struct dns_options *dns = &options->dns_options;
+
+ /* The DNS up/down command and flags come from local configuration. */
+ gc_free(&dns->gc);
+ CLEAR(dns->from_dhcp);
+ dns->search_domains = NULL;
+ dns->servers_prepull = NULL;
+ dns->servers = NULL;
}
static void
--
To view, visit https://gerrit.openvpn.net/c/openvpn/+/2360?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ib20f4965f25472f47b98981d54eaf4e2269d7408
Gerrit-Change-Number: 2360
Gerrit-PatchSet: 1
Gerrit-Owner: Marco Baffo <[email protected]>
Gerrit-Reviewer: Arne Schwabe <[email protected]>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: Arne Schwabe <[email protected]>
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel