mirror of
https://github.com/passepartoutvpn/passepartout-apple.git
synced 2025-01-31 21:12:10 +00:00
Fix missing DNS servers fields in DoH
Also fix servers list not saved in DoH/DoT in general. Fixes #171
This commit is contained in:
parent
95c84a0386
commit
551e57dcd7
@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## Unreleased
|
||||
|
||||
### Fixed
|
||||
|
||||
- No way to set DNS servers when using DNS over HTTPS. [#171](https://github.com/passepartoutvpn/passepartout-apple/issues/171)
|
||||
|
||||
## 1.15.0 (2021-02-09)
|
||||
|
||||
### Added
|
||||
|
@ -79,13 +79,7 @@ class NetworkSettingsViewController: UITableViewController {
|
||||
}
|
||||
if networkChoices.dns != .server {
|
||||
sections.append(.manualDNSProtocol)
|
||||
switch networkSettings.dnsProtocol {
|
||||
case .https:
|
||||
break
|
||||
|
||||
default:
|
||||
sections.append(.manualDNSServers)
|
||||
}
|
||||
sections.append(.manualDNSServers)
|
||||
sections.append(.manualDNSDomains)
|
||||
}
|
||||
if networkChoices.proxy != .server {
|
||||
|
@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## Unreleased
|
||||
|
||||
### Fixed
|
||||
|
||||
- No way to set DNS servers when using DNS over HTTPS. [#171](https://github.com/passepartoutvpn/passepartout-apple/issues/171)
|
||||
|
||||
## 1.15.0 (2021-02-09)
|
||||
|
||||
### Added
|
||||
|
@ -162,8 +162,9 @@ class DNSViewController: NSViewController, ProfileCustomization {
|
||||
networkSettings.dnsTLSServerName = textDNSCustom.stringValue
|
||||
|
||||
default:
|
||||
networkSettings.dnsServers = tableDNSAddresses.rows
|
||||
break
|
||||
}
|
||||
networkSettings.dnsServers = tableDNSAddresses.rows
|
||||
networkSettings.dnsSearchDomains = tableDNSDomains.rows
|
||||
|
||||
delegate?.profileCustomization(self, didUpdateDNS: .manual, withManualSettings: networkSettings)
|
||||
@ -209,17 +210,14 @@ class DNSViewController: NSViewController, ProfileCustomization {
|
||||
textDNSCustom.placeholderString = isManual ? AppConstants.Placeholders.dohURL : ""
|
||||
textDNSCustom.stringValue = networkSettings.dnsHTTPSURL?.absoluteString ?? ""
|
||||
textDNSCustom.isHidden = false
|
||||
viewDNSAddresses.isHidden = true
|
||||
|
||||
case .tls:
|
||||
textDNSCustom.placeholderString = isManual ? AppConstants.Placeholders.dotServerName : ""
|
||||
textDNSCustom.stringValue = networkSettings.dnsTLSServerName ?? ""
|
||||
textDNSCustom.isHidden = false
|
||||
viewDNSAddresses.isHidden = false
|
||||
|
||||
default:
|
||||
textDNSCustom.isHidden = true
|
||||
viewDNSAddresses.isHidden = false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user