Remove extra restore function

This commit is contained in:
Owen
2026-03-11 17:16:33 -07:00
committed by Owen Schwartz
parent e82387d515
commit 98a24960f5

View File

@@ -516,14 +516,6 @@ func (o *Olm) StartTunnel(config TunnelConfig) {
logger.Info("Tunnel process context cancelled, cleaning up")
}
func (o *Olm) RestoreDNSOverride() {
// Restore original DNS configuration
// we do this first to avoid any DNS issues if something else gets stuck
if err := dnsOverride.RestoreDNSOverride(); err != nil {
logger.Error("Failed to restore DNS: %v", err)
}
}
func (o *Olm) Close() {
// Stop registration first to prevent it from trying to use closed websocket
if o.stopRegister != nil {