Skip to content

Commit

Permalink
Makes some changes to anonymize some of the VPN metadata (#782)
Browse files Browse the repository at this point in the history
Task/Issue URL: https://app.asana.com/0/0/1207087903608440/f
iOS PR: duckduckgo/iOS#2750
macOS PR: duckduckgo/macos-browser#2634
What kind of version bump will this require?: Major/Minor/Patch

## Description

Replace available interfaces in VPN metadata
  • Loading branch information
diegoreymendez authored Apr 16, 2024
1 parent c98a416 commit 543398a
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,17 @@ extension Network.NWPath {
description += "unsatisfiedReason: \(unsatisfiedReason), "
}

description += "availableInterfaces: \(availableInterfaces), "
let tunnelCount = availableInterfaces.filter { interface in
interface.type == .other && interface.name.contains("utun")
}.count

let dnsCount = availableInterfaces.filter { interface in
interface.type == .other && interface.name.contains("dns")
}.count

description += "mainInterfaceType: \(String(describing: availableInterfaces.first?.type)), "
description += "tunnelInterfaceCount: \(tunnelCount), "
description += "dnsInterfaceCount: \(dnsCount)), "
description += "isConstrained: \(isConstrained ? "true" : "false"), "
description += "isExpensive: \(isExpensive ? "true" : "false")"
description += ")"
Expand Down

0 comments on commit 543398a

Please sign in to comment.