Adjust log of routing policies
Consistent with print configuration.
This commit is contained in:
parent
1b0c9979ce
commit
4ce2d78c5a
|
@ -472,12 +472,13 @@ extension TunnelKitProvider: SessionProxyDelegate {
|
|||
log.info("\tRemote: \(remoteAddress.maskedDescription)")
|
||||
log.info("\tIPv4: \(reply.options.ipv4?.description ?? "not configured")")
|
||||
log.info("\tIPv6: \(reply.options.ipv6?.description ?? "not configured")")
|
||||
// FIXME: refine logging of other routing policies
|
||||
log.info("\tDefault gateway: \(reply.options.routingPolicies?.maskedDescription ?? "not configured")")
|
||||
if let dnsServers = reply.options.dnsServers, !dnsServers.isEmpty {
|
||||
log.info("\tDNS: \(dnsServers.map { $0.maskedDescription })")
|
||||
} else {
|
||||
log.info("\tDNS: not configured")
|
||||
}
|
||||
log.info("\tRouting policies: \(reply.options.routingPolicies?.maskedDescription ?? "not configured")")
|
||||
log.info("\tDomain: \(reply.options.searchDomain?.maskedDescription ?? "not configured")")
|
||||
|
||||
if reply.options.httpProxy != nil || reply.options.httpsProxy != nil {
|
||||
|
|
Loading…
Reference in New Issue