Move ProfileNetworkChoices to Core

This commit is contained in:
Davide De Rosa 2019-06-28 10:53:24 +02:00
parent 50a458f151
commit ab189025b9
2 changed files with 2 additions and 13 deletions

View File

@ -48,21 +48,10 @@ private struct Offsets {
static let proxyBypass = 2
}
// FIXME: init networkSettings with HOST profile.sessionConfiguration
// FIXME: omit "Client" for PROVIDER
class NetworkSettingsViewController: UITableViewController {
var profile: ConnectionProfile?
private lazy var networkChoices: ProfileNetworkChoices = {
if let choices = profile?.networkChoices {
return choices
}
if let _ = profile as? ProviderConnectionProfile {
return ProfileNetworkChoices(choice: .server)
}
return ProfileNetworkChoices(choice: .client)
}()
private lazy var networkChoices = ProfileNetworkChoices.with(profile: profile)
private let networkSettings = ProfileNetworkSettings()

@ -1 +1 @@
Subproject commit 2d5f1f6f0d4d8d8353543da547d6b531beab1894
Subproject commit 2b5b2e547384886d3fb04ada7e926c618c443629