Model: Make InterfaceConfiguration and PeerConfiguration structs
This commit is contained in:
parent
3e72dcade8
commit
e337427eae
|
@ -18,7 +18,7 @@ class TunnelConfiguration: Codable {
|
||||||
}
|
}
|
||||||
|
|
||||||
@available(OSX 10.14, iOS 12.0, *)
|
@available(OSX 10.14, iOS 12.0, *)
|
||||||
class InterfaceConfiguration: Codable {
|
struct InterfaceConfiguration: Codable {
|
||||||
var name: String
|
var name: String
|
||||||
var privateKey: Data
|
var privateKey: Data
|
||||||
var addresses: [IPAddressRange] = []
|
var addresses: [IPAddressRange] = []
|
||||||
|
@ -35,7 +35,7 @@ class InterfaceConfiguration: Codable {
|
||||||
}
|
}
|
||||||
|
|
||||||
@available(OSX 10.14, iOS 12.0, *)
|
@available(OSX 10.14, iOS 12.0, *)
|
||||||
class PeerConfiguration: Codable {
|
struct PeerConfiguration: Codable {
|
||||||
var publicKey: Data
|
var publicKey: Data
|
||||||
var preSharedKey: Data? {
|
var preSharedKey: Data? {
|
||||||
didSet(value) {
|
didSet(value) {
|
||||||
|
|
Loading…
Reference in New Issue