From f17bb110c2e7708bc98ad9f0552d633f77bdd800 Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Thu, 13 Oct 2022 18:34:01 +0200 Subject: [PATCH] Adjust log of DNS settings according to gateway --- .../OpenVPNTunnelProvider.swift | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Sources/TunnelKitOpenVPNAppExtension/OpenVPNTunnelProvider.swift b/Sources/TunnelKitOpenVPNAppExtension/OpenVPNTunnelProvider.swift index 2046c60..f1785a2 100644 --- a/Sources/TunnelKitOpenVPNAppExtension/OpenVPNTunnelProvider.swift +++ b/Sources/TunnelKitOpenVPNAppExtension/OpenVPNTunnelProvider.swift @@ -707,9 +707,13 @@ extension OpenVPNTunnelProvider: OpenVPNSessionDelegate { log.info("DNS: Using servers \(dnsServers.maskedDescription)") dnsSettings = NEDNSSettings(servers: dnsServers) } else { - // log.warning("DNS: No servers provided, using fall-back servers: \(fallbackDNSServers.maskedDescription)") - // dnsSettings = NEDNSSettings(servers: fallbackDNSServers) - log.warning("DNS: No settings provided, using current network settings") +// log.warning("DNS: No servers provided, using fall-back servers: \(fallbackDNSServers.maskedDescription)") +// dnsSettings = NEDNSSettings(servers: fallbackDNSServers) + if isGateway { + log.warning("DNS: No settings provided, using current network settings") + } else { + log.warning("DNS: No settings provided") + } } }