Allow host endpoint customization

This commit is contained in:
Davide De Rosa 2020-05-23 19:06:44 +02:00
parent 24f13fecd6
commit 7cd9200818
3 changed files with 11 additions and 6 deletions

View File

@ -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
### Added
- Customize host endpoint.
## 1.11.3 (2020-05-21)
### Added

View File

@ -908,7 +908,7 @@ extension ServiceViewController: UITableViewDataSource, UITableViewDelegate, Tog
let V = L10n.Core.Global.Values.self
if let provider = profile as? ProviderConnectionProfile {
cell.rightText = provider.usesProviderEndpoint ? V.manual : V.automatic
cell.rightText = provider.usesCustomEndpoint ? V.manual : V.automatic
} else {
cell.rightText = profile?.mainAddress
}
@ -1424,10 +1424,9 @@ extension ServiceViewController: AccountViewControllerDelegate {
extension ServiceViewController: EndpointViewControllerDelegate {
func endpointController(_: EndpointViewController, didUpdateWithNewAddress newAddress: String?, newProtocol: EndpointProtocol?) {
if let providerProfile = profile as? ProviderConnectionProfile {
providerProfile.manualAddress = newAddress
providerProfile.manualProtocol = newProtocol
}
profile?.customAddress = newAddress
profile?.customProtocol = newProtocol
reloadSelectedRow()
}
}

@ -1 +1 @@
Subproject commit d3609e117a47e1132fa70f2a2bd72768ef5e6587
Subproject commit 26431df4a4d189f45e2892c8fab4268e48c2f7f4