diff --git a/WireGuard/Base.lproj/Main.storyboard b/WireGuard/Base.lproj/Main.storyboard index 2bf0950..1b486a8 100644 --- a/WireGuard/Base.lproj/Main.storyboard +++ b/WireGuard/Base.lproj/Main.storyboard @@ -87,15 +87,15 @@ - - + + - + - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -271,7 +224,6 @@ - @@ -285,17 +237,15 @@ - - - + @@ -320,7 +270,7 @@ - + diff --git a/WireGuard/Models/Interface+CoreDataProperties.swift b/WireGuard/Models/Interface+CoreDataProperties.swift index 8775dc5..004db5c 100644 --- a/WireGuard/Models/Interface+CoreDataProperties.swift +++ b/WireGuard/Models/Interface+CoreDataProperties.swift @@ -16,15 +16,11 @@ extension Interface { return NSFetchRequest(entityName: "Interface") } - @NSManaged public var fwMark: Int32 @NSManaged public var listenPort: Int16 @NSManaged public var privateKey: String? @NSManaged public var mtu: Int32 @NSManaged public var dns: String? - @NSManaged public var table: String? @NSManaged public var tunnel: Tunnel? - @NSManaged public var publicKey: String? - @NSManaged public var adresses: NSSet? } diff --git a/WireGuard/ViewControllers/TunnelConfigurationTableViewController.swift b/WireGuard/ViewControllers/TunnelConfigurationTableViewController.swift index 112cae7..1a69d94 100644 --- a/WireGuard/ViewControllers/TunnelConfigurationTableViewController.swift +++ b/WireGuard/ViewControllers/TunnelConfigurationTableViewController.swift @@ -138,8 +138,6 @@ class InterfaceTableViewCell: UITableViewCell { didSet { nameField.text = model.tunnel?.title privateKeyField.text = model.privateKey - publicKeyField.text = model.publicKey -//TODO addressesField.text = model.adresses.map{ $0.} listenPortField.text = String(model.listenPort) dnsField.text = model.dns mtuField.text = String(model.mtu) @@ -149,7 +147,6 @@ class InterfaceTableViewCell: UITableViewCell { @IBOutlet weak var nameField: UITextField! @IBOutlet weak var privateKeyField: UITextField! @IBOutlet weak var publicKeyField: UITextField! - @IBOutlet weak var addressesField: UITextField! @IBOutlet weak var listenPortField: UITextField! @IBOutlet weak var dnsField: UITextField! @IBOutlet weak var mtuField: UITextField! @@ -164,17 +161,10 @@ extension InterfaceTableViewCell: UITextFieldDelegate { model.tunnel?.title = string } else if sender == privateKeyField { model.privateKey = string - } else if sender == publicKeyField { - model.publicKey = string - } else if sender == addressesField { - let address = Address(context: model.managedObjectContext!) - address.address = string - model.adresses = NSSet(array: [address]) } else if sender == listenPortField { if let string = string, let port = Int16(string) { model.listenPort = port } - } else if sender == dnsField { model.dns = string } else if sender == mtuField {