aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/Shared/Model/Legacy/LegacyInterfaceConfiguration.swift
diff options
context:
space:
mode:
authorEric Kuck <eric@bluelinelabs.com>2018-12-21 12:51:14 -0600
committerEric Kuck <eric@bluelinelabs.com>2018-12-21 12:51:14 -0600
commitf6af9d9ffbc3dae8c387a0eacf811d58ee6e4605 (patch)
treeae6563a1e5a37fb3c8856b627062e81443d0eb97 /WireGuard/Shared/Model/Legacy/LegacyInterfaceConfiguration.swift
parentSimplify versioning of stored data (diff)
downloadwireguard-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.swift24
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
- }
-}