Model: Make InterfaceConfiguration and PeerConfiguration structs

Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
Roopesh Chander 2018-10-20 16:30:14 +05:30
parent 89214e7db9
commit 2e96dbe363
1 changed files with 2 additions and 2 deletions

View 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) {