mirror of
https://github.com/passepartoutvpn/passepartout-apple.git
synced 2025-01-17 22:19:08 +00:00
Show EKU and random endpoint in configuration
This commit is contained in:
parent
250c3399da
commit
400cea0f7b
@ -83,12 +83,12 @@ class ConfigurationViewController: UIViewController, TableModelHost {
|
|||||||
if isEditable {
|
if isEditable {
|
||||||
model.set([.resetOriginal], in: .reset)
|
model.set([.resetOriginal], in: .reset)
|
||||||
}
|
}
|
||||||
model.set([.client, .tlsWrapping], in: .tls)
|
model.set([.client, .tlsWrapping, .eku], in: .tls)
|
||||||
model.set([.compressionFraming, .compressionAlgorithm], in: .compression)
|
model.set([.compressionFraming, .compressionAlgorithm], in: .compression)
|
||||||
if let dnsServers = configuration.dnsServers {
|
if let dnsServers = configuration.dnsServers {
|
||||||
model.set(.dnsServer, count: dnsServers.count, in: .dns)
|
model.set(.dnsServer, count: dnsServers.count, in: .dns)
|
||||||
}
|
}
|
||||||
model.set([.keepAlive, .renegSeconds], in: .other)
|
model.set([.keepAlive, .renegSeconds, .randomEndpoint], in: .other)
|
||||||
|
|
||||||
return model
|
return model
|
||||||
}()
|
}()
|
||||||
@ -188,6 +188,8 @@ extension ConfigurationViewController: UITableViewDataSource, UITableViewDelegat
|
|||||||
|
|
||||||
case tlsWrapping
|
case tlsWrapping
|
||||||
|
|
||||||
|
case eku
|
||||||
|
|
||||||
case compressionFraming
|
case compressionFraming
|
||||||
|
|
||||||
case compressionAlgorithm
|
case compressionAlgorithm
|
||||||
@ -197,6 +199,8 @@ extension ConfigurationViewController: UITableViewDataSource, UITableViewDelegat
|
|||||||
case keepAlive
|
case keepAlive
|
||||||
|
|
||||||
case renegSeconds
|
case renegSeconds
|
||||||
|
|
||||||
|
case randomEndpoint
|
||||||
}
|
}
|
||||||
|
|
||||||
func numberOfSections(in tableView: UITableView) -> Int {
|
func numberOfSections(in tableView: UITableView) -> Int {
|
||||||
@ -275,6 +279,12 @@ extension ConfigurationViewController: UITableViewDataSource, UITableViewDelegat
|
|||||||
cell.accessoryType = .none
|
cell.accessoryType = .none
|
||||||
cell.isTappable = false
|
cell.isTappable = false
|
||||||
|
|
||||||
|
case .eku:
|
||||||
|
cell.leftText = V.Eku.caption
|
||||||
|
cell.rightText = (configuration.checksEKU ?? false) ? V.All.Value.enabled : V.All.Value.disabled
|
||||||
|
cell.accessoryType = .none
|
||||||
|
cell.isTappable = false
|
||||||
|
|
||||||
case .compressionFraming:
|
case .compressionFraming:
|
||||||
cell.leftText = L10n.Configuration.Cells.CompressionFraming.caption
|
cell.leftText = L10n.Configuration.Cells.CompressionFraming.caption
|
||||||
cell.rightText = configuration.compressionFraming.cellDescription
|
cell.rightText = configuration.compressionFraming.cellDescription
|
||||||
@ -319,6 +329,12 @@ extension ConfigurationViewController: UITableViewDataSource, UITableViewDelegat
|
|||||||
}
|
}
|
||||||
cell.accessoryType = .none
|
cell.accessoryType = .none
|
||||||
cell.isTappable = false
|
cell.isTappable = false
|
||||||
|
|
||||||
|
case .randomEndpoint:
|
||||||
|
cell.leftText = V.RandomEndpoint.caption
|
||||||
|
cell.rightText = (configuration.randomizeEndpoint ?? false) ? V.All.Value.enabled : V.All.Value.disabled
|
||||||
|
cell.accessoryType = .none
|
||||||
|
cell.isTappable = false
|
||||||
}
|
}
|
||||||
return cell
|
return cell
|
||||||
}
|
}
|
||||||
|
@ -162,6 +162,7 @@
|
|||||||
"configuration.cells.tls_wrapping.caption" = "Wrapping";
|
"configuration.cells.tls_wrapping.caption" = "Wrapping";
|
||||||
"configuration.cells.tls_wrapping.value.auth" = "Authentication";
|
"configuration.cells.tls_wrapping.value.auth" = "Authentication";
|
||||||
"configuration.cells.tls_wrapping.value.crypt" = "Encryption";
|
"configuration.cells.tls_wrapping.value.crypt" = "Encryption";
|
||||||
|
"configuration.cells.eku.caption" = "Extended verification";
|
||||||
"configuration.cells.dns_server.caption" = "Address";
|
"configuration.cells.dns_server.caption" = "Address";
|
||||||
"configuration.cells.compression_framing.caption" = "Framing";
|
"configuration.cells.compression_framing.caption" = "Framing";
|
||||||
"configuration.cells.compression_framing.value.lzo" = "--comp-lzo";
|
"configuration.cells.compression_framing.value.lzo" = "--comp-lzo";
|
||||||
@ -173,6 +174,7 @@
|
|||||||
"configuration.cells.keep_alive.value.seconds" = "%d seconds";
|
"configuration.cells.keep_alive.value.seconds" = "%d seconds";
|
||||||
"configuration.cells.renegotiation_seconds.caption" = "Renegotiation";
|
"configuration.cells.renegotiation_seconds.caption" = "Renegotiation";
|
||||||
"configuration.cells.renegotiation_seconds.value.after" = "after %@";
|
"configuration.cells.renegotiation_seconds.value.after" = "after %@";
|
||||||
|
"configuration.cells.random_endpoint.caption" = "Randomize endpoint";
|
||||||
"configuration.cells.all.value.enabled" = "Enabled";
|
"configuration.cells.all.value.enabled" = "Enabled";
|
||||||
"configuration.cells.all.value.disabled" = "Disabled";
|
"configuration.cells.all.value.disabled" = "Disabled";
|
||||||
|
|
||||||
|
@ -152,6 +152,10 @@ public enum L10n {
|
|||||||
/// Address
|
/// Address
|
||||||
public static let caption = L10n.tr("Localizable", "configuration.cells.dns_server.caption")
|
public static let caption = L10n.tr("Localizable", "configuration.cells.dns_server.caption")
|
||||||
}
|
}
|
||||||
|
public enum Eku {
|
||||||
|
/// Extended verification
|
||||||
|
public static let caption = L10n.tr("Localizable", "configuration.cells.eku.caption")
|
||||||
|
}
|
||||||
public enum KeepAlive {
|
public enum KeepAlive {
|
||||||
/// Keep-alive
|
/// Keep-alive
|
||||||
public static let caption = L10n.tr("Localizable", "configuration.cells.keep_alive.caption")
|
public static let caption = L10n.tr("Localizable", "configuration.cells.keep_alive.caption")
|
||||||
@ -162,6 +166,10 @@ public enum L10n {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
public enum RandomEndpoint {
|
||||||
|
/// Randomize endpoint
|
||||||
|
public static let caption = L10n.tr("Localizable", "configuration.cells.random_endpoint.caption")
|
||||||
|
}
|
||||||
public enum RenegotiationSeconds {
|
public enum RenegotiationSeconds {
|
||||||
/// Renegotiation
|
/// Renegotiation
|
||||||
public static let caption = L10n.tr("Localizable", "configuration.cells.renegotiation_seconds.caption")
|
public static let caption = L10n.tr("Localizable", "configuration.cells.renegotiation_seconds.caption")
|
||||||
|
Loading…
Reference in New Issue
Block a user