Use Endpoint in the Configuration model

This commit is contained in:
Roopesh Chander 2018-10-19 19:34:51 +05:30
parent 7482ee8cf5
commit 255b579f4d
1 changed files with 1 additions and 1 deletions

View File

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