diff --git a/Passepartout/App/iOS/Scenes/NetworkSettingsViewController.swift b/Passepartout/App/iOS/Scenes/NetworkSettingsViewController.swift index 30e51a8a..fcc35bad 100644 --- a/Passepartout/App/iOS/Scenes/NetworkSettingsViewController.swift +++ b/Passepartout/App/iOS/Scenes/NetworkSettingsViewController.swift @@ -80,7 +80,7 @@ class NetworkSettingsViewController: UITableViewController { if networkChoices.dns != .server { sections.append(.manualDNSProtocol) switch networkSettings.dnsProtocol { - case .https, .tls: + case .https: break default: diff --git a/Passepartout/App/macOS/Base.lproj/Service.storyboard b/Passepartout/App/macOS/Base.lproj/Service.storyboard index 1109dade..5bc1009d 100644 --- a/Passepartout/App/macOS/Base.lproj/Service.storyboard +++ b/Passepartout/App/macOS/Base.lproj/Service.storyboard @@ -136,14 +136,14 @@ - + - + - + @@ -163,10 +163,18 @@ - + + + + + + + + + - + @@ -185,52 +193,58 @@ - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + - + + + + - - - - - - - - - - - - - - - + + + + + + + + + + + - - - + - - - - - + + - - - + @@ -240,7 +254,7 @@ - + @@ -255,9 +269,7 @@ - - diff --git a/Passepartout/App/macOS/Scenes/Service/Customization/DNSViewController.swift b/Passepartout/App/macOS/Scenes/Service/Customization/DNSViewController.swift index 7f1a37d6..2a998c85 100644 --- a/Passepartout/App/macOS/Scenes/Service/Customization/DNSViewController.swift +++ b/Passepartout/App/macOS/Scenes/Service/Customization/DNSViewController.swift @@ -46,10 +46,6 @@ class DNSViewController: NSViewController, ProfileCustomization { @IBOutlet private var constraintSettingsTop: NSLayoutConstraint! - @IBOutlet private var constraintCustomBottom: NSLayoutConstraint! - - @IBOutlet private var constraintAddressesBottom: NSLayoutConstraint! - private lazy var tableDNSDomains: TextTableView = .get() private lazy var tableDNSAddresses: TextTableView = .get() @@ -208,25 +204,22 @@ class DNSViewController: NSViewController, ProfileCustomization { private func updateProtocolVisibility() { let isManual = (currentChoice == .manual) - let isCustom: Bool switch networkSettings.dnsProtocol { case .https: - isCustom = true textDNSCustom.placeholderString = isManual ? AppConstants.Placeholders.dohURL : "" textDNSCustom.stringValue = networkSettings.dnsHTTPSURL?.absoluteString ?? "" - + textDNSCustom.isHidden = false + viewDNSAddresses.isHidden = true + case .tls: - isCustom = true textDNSCustom.placeholderString = isManual ? AppConstants.Placeholders.dotServerName : "" textDNSCustom.stringValue = networkSettings.dnsTLSServerName ?? "" + textDNSCustom.isHidden = false + viewDNSAddresses.isHidden = false default: - isCustom = false + textDNSCustom.isHidden = true + viewDNSAddresses.isHidden = false } - - constraintCustomBottom.priority = isCustom ? .defaultHigh : .defaultLow - constraintAddressesBottom.priority = isCustom ? .defaultLow : .defaultHigh - textDNSCustom.isHidden = !isCustom - viewDNSAddresses.isHidden = isCustom } } diff --git a/Podfile b/Podfile index 10d52085..2f6c0f90 100644 --- a/Podfile +++ b/Podfile @@ -8,7 +8,7 @@ $tunnelkit_specs = ['Protocols/OpenVPN', 'Extra/LZO'] def shared_pods #pod_version $tunnelkit_name, $tunnelkit_specs, '~> 3.1.0' - pod_git $tunnelkit_name, $tunnelkit_specs, '5014e65' + pod_git $tunnelkit_name, $tunnelkit_specs, '790ec27' #pod_path $tunnelkit_name, $tunnelkit_specs, '..' pod 'SSZipArchive' pod 'Kvitto', :git => 'https://github.com/keeshux/Kvitto', :branch => 'enable-macos-spec' diff --git a/Podfile.lock b/Podfile.lock index 9c397c15..46128cf4 100644 --- a/Podfile.lock +++ b/Podfile.lock @@ -52,8 +52,8 @@ DEPENDENCIES: - Kvitto (from `https://github.com/keeshux/Kvitto`, branch `enable-macos-spec`) - MBProgressHUD - SSZipArchive - - TunnelKit/Extra/LZO (from `https://github.com/passepartoutvpn/tunnelkit`, commit `5014e65`) - - TunnelKit/Protocols/OpenVPN (from `https://github.com/passepartoutvpn/tunnelkit`, commit `5014e65`) + - TunnelKit/Extra/LZO (from `https://github.com/passepartoutvpn/tunnelkit`, commit `790ec27`) + - TunnelKit/Protocols/OpenVPN (from `https://github.com/passepartoutvpn/tunnelkit`, commit `790ec27`) SPEC REPOS: https://github.com/cocoapods/specs.git: @@ -71,7 +71,7 @@ EXTERNAL SOURCES: :branch: enable-macos-spec :git: https://github.com/keeshux/Kvitto TunnelKit: - :commit: '5014e65' + :commit: 790ec27 :git: https://github.com/passepartoutvpn/tunnelkit CHECKOUT OPTIONS: @@ -82,7 +82,7 @@ CHECKOUT OPTIONS: :commit: e263fcd1f40a6a482a0f1e424ba98009c4ad2b96 :git: https://github.com/keeshux/Kvitto TunnelKit: - :commit: '5014e65' + :commit: 790ec27 :git: https://github.com/passepartoutvpn/tunnelkit SPEC CHECKSUMS: @@ -95,6 +95,6 @@ SPEC CHECKSUMS: SwiftyBeaver: 2e8acd6fc90c6d0a27055867a290794926d57c02 TunnelKit: 2a6aadea2d772a2760b153aee27d1c334c9ca6db -PODFILE CHECKSUM: 90f34e726cde9553212321b6f95cd79f284e0dca +PODFILE CHECKSUM: cc3df077424e69b4f02e5ed3d26fe4be4786b733 COCOAPODS: 1.10.0