More updates

This commit is contained in:
Neil Alexander 2024-04-16 22:51:06 +01:00
parent 5fbb735f56
commit 0bea3a1613
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
9 changed files with 150 additions and 38 deletions

View file

@ -113,9 +113,7 @@ class PacketTunnelProvider: NEPacketTunnelProvider {
subnet: self.yggdrasil.getSubnetString(),
publicKey: self.yggdrasil.getPublicKeyString(),
enabled: true,
peers: peers.sorted(by: { a, b in
a.remote < b.remote
})
peers: peers
)
if let json = try? JSONEncoder().encode(summary) {
completionHandler?(json)