]> git.ipfire.org Git - thirdparty/wireguard-apple.git/commitdiff
Model: Make InterfaceConfiguration and PeerConfiguration structs
authorRoopesh Chander <roop@roopc.net>
Sat, 20 Oct 2018 11:00:14 +0000 (16:30 +0530)
committerRoopesh Chander <roop@roopc.net>
Sat, 27 Oct 2018 09:43:01 +0000 (15:13 +0530)
Signed-off-by: Roopesh Chander <roop@roopc.net>
WireGuard/WireGuard/Model/Configuration.swift

index 152d30abe9fc4be32a87bae20e890a8f008caf45..ce71630d92711bc440e4cc84d32f79011571d899 100644 (file)
@@ -18,7 +18,7 @@ class TunnelConfiguration: Codable {
 }
 
 @available(OSX 10.14, iOS 12.0, *)
-class InterfaceConfiguration: Codable {
+struct InterfaceConfiguration: Codable {
     var name: String
     var privateKey: Data
     var addresses: [IPAddressRange] = []
@@ -35,7 +35,7 @@ class InterfaceConfiguration: Codable {
 }
 
 @available(OSX 10.14, iOS 12.0, *)
-class PeerConfiguration: Codable {
+struct PeerConfiguration: Codable {
     var publicKey: Data
     var preSharedKey: Data? {
         didSet(value) {