From 2e96dbe363eff485251ff1371f6da298c35ee6e9 Mon Sep 17 00:00:00 2001 From: Roopesh Chander Date: Sat, 20 Oct 2018 16:30:14 +0530 Subject: [PATCH] Model: Make InterfaceConfiguration and PeerConfiguration structs Signed-off-by: Roopesh Chander --- WireGuard/WireGuard/Model/Configuration.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WireGuard/WireGuard/Model/Configuration.swift b/WireGuard/WireGuard/Model/Configuration.swift index 152d30a..ce71630 100644 --- a/WireGuard/WireGuard/Model/Configuration.swift +++ b/WireGuard/WireGuard/Model/Configuration.swift @@ -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) {