mirror of
https://github.com/passepartoutvpn/passepartout-apple.git
synced 2025-02-17 05:12:18 +00:00
Move ProfileNetworkChoices to Core
This commit is contained in:
parent
50a458f151
commit
ab189025b9
@ -48,21 +48,10 @@ private struct Offsets {
|
|||||||
static let proxyBypass = 2
|
static let proxyBypass = 2
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME: init networkSettings with HOST profile.sessionConfiguration
|
|
||||||
// FIXME: omit "Client" for PROVIDER
|
|
||||||
|
|
||||||
class NetworkSettingsViewController: UITableViewController {
|
class NetworkSettingsViewController: UITableViewController {
|
||||||
var profile: ConnectionProfile?
|
var profile: ConnectionProfile?
|
||||||
|
|
||||||
private lazy var networkChoices: ProfileNetworkChoices = {
|
private lazy var networkChoices = ProfileNetworkChoices.with(profile: profile)
|
||||||
if let choices = profile?.networkChoices {
|
|
||||||
return choices
|
|
||||||
}
|
|
||||||
if let _ = profile as? ProviderConnectionProfile {
|
|
||||||
return ProfileNetworkChoices(choice: .server)
|
|
||||||
}
|
|
||||||
return ProfileNetworkChoices(choice: .client)
|
|
||||||
}()
|
|
||||||
|
|
||||||
private let networkSettings = ProfileNetworkSettings()
|
private let networkSettings = ProfileNetworkSettings()
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 2d5f1f6f0d4d8d8353543da547d6b531beab1894
|
Subproject commit 2b5b2e547384886d3fb04ada7e926c618c443629
|
Loading…
Reference in New Issue
Block a user