mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-17 23:56:56 +00:00
Launcher, app/base, sentry, update service
This commit is contained in:
@ -24,6 +24,8 @@ import (
|
||||
"net/http"
|
||||
"os"
|
||||
"strings"
|
||||
|
||||
"github.com/ProtonMail/proton-bridge/pkg/listener"
|
||||
)
|
||||
|
||||
func init() {
|
||||
@ -37,13 +39,13 @@ func init() {
|
||||
rootURL = fullRootURL
|
||||
rootScheme = "https"
|
||||
}
|
||||
}
|
||||
|
||||
func GetRoundTripper(_ *ClientManager, _ listener.Listener) http.RoundTripper {
|
||||
transport := CreateTransportWithDialer(NewBasicTLSDialer())
|
||||
|
||||
// TLS certificate of testing environment might be self-signed.
|
||||
defaultTransport = &http.Transport{
|
||||
Proxy: http.ProxyFromEnvironment,
|
||||
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
|
||||
}
|
||||
transport.TLSClientConfig = &tls.Config{InsecureSkipVerify: true}
|
||||
|
||||
// This config disables TLS cert checking.
|
||||
checkTLSCerts = false
|
||||
return transport
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user