Adjust log of routing policies

Consistent with print configuration.
This commit is contained in:
Davide De Rosa 2019-04-25 16:11:17 +02:00
parent 1b0c9979ce
commit 4ce2d78c5a
1 changed files with 2 additions and 1 deletions

View File

@ -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 {