Fix up misleading log from condition in latest commit
This commit is contained in:
parent
0f097d50af
commit
3abb7cbccc
|
@ -711,7 +711,8 @@ extension OpenVPNTunnelProvider: OpenVPNSessionDelegate {
|
|||
}
|
||||
|
||||
// fall back
|
||||
if dnsSettings == nil && !dnsServers.isEmpty {
|
||||
if dnsSettings == nil {
|
||||
if !dnsServers.isEmpty {
|
||||
log.info("DNS: Using servers \(dnsServers.maskedDescription)")
|
||||
dnsSettings = NEDNSSettings(servers: dnsServers)
|
||||
} else {
|
||||
|
@ -719,6 +720,7 @@ extension OpenVPNTunnelProvider: OpenVPNSessionDelegate {
|
|||
// dnsSettings = NEDNSSettings(servers: fallbackDNSServers)
|
||||
log.warning("DNS: No settings provided, using current network settings")
|
||||
}
|
||||
}
|
||||
|
||||
// "hack" for split DNS (i.e. use VPN only for DNS)
|
||||
if !isGateway {
|
||||
|
|
Loading…
Reference in New Issue