refactor: make getHost and getScheme private

This commit is contained in:
James Houlahan
2020-04-08 13:08:35 +02:00
parent db02eb694d
commit abca7284dd
3 changed files with 28 additions and 28 deletions

View File

@ -297,7 +297,7 @@ func (p *DialerWithPinning) dialWithProxyFallback(network, address string) (conn
// If DoH is not allowed, give up. Or, if we are dialing something other than the API
// (e.g. we dial protonmail.com/... to check for updates), there's also no point in
// continuing since a proxy won't help us reach that.
if !p.cm.IsProxyAllowed() || host != p.cm.GetHost() {
if !p.cm.IsProxyAllowed() || host != p.cm.getHost() {
p.log.WithField("address", address).Debug("Aborting dial, cannot switch to a proxy")
return
}