mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-19 16:46:55 +00:00
fix: correct timeouts according to spec
This commit is contained in:
committed by
Michal Horejsek
parent
68d2591c73
commit
2db1b113e0
@ -42,7 +42,7 @@ func NewBasicTLSDialer() *BasicTLSDialer {
|
||||
|
||||
// DialTLS returns a connection to the given address using the given network.
|
||||
func (b *BasicTLSDialer) DialTLS(network, address string) (conn net.Conn, err error) {
|
||||
dialer := &net.Dialer{Timeout: 10 * time.Second}
|
||||
dialer := &net.Dialer{Timeout: 30 * time.Second} // Alternative Routes spec says this should be a 30s timeout.
|
||||
|
||||
var tlsConfig *tls.Config = nil
|
||||
|
||||
|
||||
Reference in New Issue
Block a user