From e82387d51550062506241ce48c91743ce33ccb02 Mon Sep 17 00:00:00 2001 From: Owen Date: Wed, 11 Mar 2026 16:54:53 -0700 Subject: [PATCH] Actually pull the upstream from the dns var --- olm/olm.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/olm/olm.go b/olm/olm.go index 92c8db6..6dd7f73 100644 --- a/olm/olm.go +++ b/olm/olm.go @@ -298,9 +298,13 @@ func (o *Olm) StartTunnel(config TunnelConfig) { o.tunnelRunning = true // Also set it here in case it is called externally o.tunnelConfig = config - + // TODO: we are hardcoding this for now but we should really pull it from the current config of the system - o.tunnelConfig.PublicDNS = []string{"8.8.8.8:53", "1.1.1.1:53"} + if o.tunnelConfig.DNS != "" { + o.tunnelConfig.PublicDNS = []string{o.tunnelConfig.DNS + ":53"} + } else { + o.tunnelConfig.PublicDNS = []string{"8.8.8.8:53"} + } // Reset terminated status when tunnel starts o.apiServer.SetTerminated(false)