Use Endpoint in the Configuration model

Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
Roopesh Chander 2018-10-19 19:34:51 +05:30
parent c12f481b70
commit 3331327d82
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ class PeerConfiguration: Codable {
var publicKey: Data var publicKey: Data
var preSharedKey: Data? var preSharedKey: Data?
var allowedIPs: [IPAddressRange] = [] var allowedIPs: [IPAddressRange] = []
var endpoint: String? var endpoint: Endpoint?
var persistentKeepAlive: UInt64? var persistentKeepAlive: UInt64?
init(publicKey: Data) { init(publicKey: Data) {
self.publicKey = publicKey self.publicKey = publicKey