From 5f2b028d72dc164ef3b7c18aeda28b6a2e8205a6 Mon Sep 17 00:00:00 2001 From: hwipl <33433250+hwipl@users.noreply.github.com> Date: Wed, 13 Mar 2024 18:50:37 +0100 Subject: [PATCH 1/2] internal/vpncscript: fix typo in comment Signed-off-by: hwipl <33433250+hwipl@users.noreply.github.com> --- internal/vpncscript/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/vpncscript/config.go b/internal/vpncscript/config.go index 077b947..749851c 100644 --- a/internal/vpncscript/config.go +++ b/internal/vpncscript/config.go @@ -165,7 +165,7 @@ func createConfigSplit(env *env, config *vpnconfig.Config) error { // set dns excludes config.Split.ExcludeDNS = env.dnsSplitExc - // set exclude virtual subnets only IPv5 flag + // set exclude virtual subnets only IPv4 flag config.Split.ExcludeVirtualSubnetsOnlyIPv4 = env.bypassVirtualSubnetsOnlyV4 From c14c96273fdbe4d09e50403b331274a4a09237fe Mon Sep 17 00:00:00 2001 From: hwipl <33433250+hwipl@users.noreply.github.com> Date: Wed, 13 Mar 2024 18:52:56 +0100 Subject: [PATCH 2/2] internal/dnsproxy: fix comments Signed-off-by: hwipl <33433250+hwipl@users.noreply.github.com> --- internal/dnsproxy/proxy.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/dnsproxy/proxy.go b/internal/dnsproxy/proxy.go index 3af2ffb..fe0b998 100644 --- a/internal/dnsproxy/proxy.go +++ b/internal/dnsproxy/proxy.go @@ -66,7 +66,7 @@ func (p *Proxy) handleRequest(w dns.ResponseWriter, r *dns.Msg) { continue } - // get TTL and enforce minimum TTL + // get TTL ttl := a.Header().Ttl switch a.Header().Rrtype { @@ -93,7 +93,7 @@ func (p *Proxy) handleRequest(w dns.ResponseWriter, r *dns.Msg) { report.Wait() case dns.TypeCNAME: - // CNAME recort, store temporary watch + // CNAME record, store temporary watch rr, ok := a.(*dns.CNAME) if !ok { log.Error("DNS-Proxy received invalid CNAME record in reply")