diff options
author | 2018-12-21 12:51:14 -0600 | |
---|---|---|
committer | 2018-12-21 12:51:14 -0600 | |
commit | f6af9d9ffbc3dae8c387a0eacf811d58ee6e4605 (patch) | |
tree | ae6563a1e5a37fb3c8856b627062e81443d0eb97 /WireGuard/Shared/Model/Legacy/LegacyInterfaceConfiguration.swift | |
parent | Simplify versioning of stored data (diff) | |
download | wireguard-apple-f6af9d9ffbc3dae8c387a0eacf811d58ee6e4605.tar.xz wireguard-apple-f6af9d9ffbc3dae8c387a0eacf811d58ee6e4605.zip |
All migration stuff moved to one gross file
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
Diffstat (limited to 'WireGuard/Shared/Model/Legacy/LegacyInterfaceConfiguration.swift')
-rw-r--r-- | WireGuard/Shared/Model/Legacy/LegacyInterfaceConfiguration.swift | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/WireGuard/Shared/Model/Legacy/LegacyInterfaceConfiguration.swift b/WireGuard/Shared/Model/Legacy/LegacyInterfaceConfiguration.swift deleted file mode 100644 index 680c8d7..0000000 --- a/WireGuard/Shared/Model/Legacy/LegacyInterfaceConfiguration.swift +++ /dev/null @@ -1,24 +0,0 @@ -// SPDX-License-Identifier: MIT -// Copyright © 2018 WireGuard LLC. All Rights Reserved. - -import Foundation - -struct LegacyInterfaceConfiguration: Codable { - let name: String - let privateKey: Data - let addresses: [LegacyIPAddressRange] - let listenPort: UInt16? - let mtu: UInt16? - let dns: [LegacyDNSServer] -} - -extension LegacyInterfaceConfiguration { - var migrated: InterfaceConfiguration { - var interface = InterfaceConfiguration(name: name, privateKey: privateKey) - interface.addresses = addresses.migrated - interface.listenPort = listenPort - interface.mtu = mtu - interface.dns = dns.migrated - return interface - } -} |