mirror of
https://github.com/fosrl/olm.git
synced 2026-03-12 21:56:39 +00:00
Actually pull the upstream from the dns var
This commit is contained in:
@@ -298,9 +298,13 @@ func (o *Olm) StartTunnel(config TunnelConfig) {
|
|||||||
|
|
||||||
o.tunnelRunning = true // Also set it here in case it is called externally
|
o.tunnelRunning = true // Also set it here in case it is called externally
|
||||||
o.tunnelConfig = config
|
o.tunnelConfig = config
|
||||||
|
|
||||||
// TODO: we are hardcoding this for now but we should really pull it from the current config of the system
|
// 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
|
// Reset terminated status when tunnel starts
|
||||||
o.apiServer.SetTerminated(false)
|
o.apiServer.SetTerminated(false)
|
||||||
|
|||||||
Reference in New Issue
Block a user