mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-17 23:56:56 +00:00
feat: tls report cache
This commit is contained in:
@ -142,7 +142,6 @@ func (p *proxyProvider) refreshProxyCache() error {
|
||||
}
|
||||
|
||||
// canReach returns whether we can reach the given url.
|
||||
// NOTE: we skip cert verification to stop it complaining that cert name doesn't match hostname.
|
||||
func (p *proxyProvider) canReach(url string) bool {
|
||||
if !strings.HasPrefix(url, "https://") && !strings.HasPrefix(url, "http://") {
|
||||
url = "https://" + url
|
||||
|
||||
Reference in New Issue
Block a user