tls: allow InsecureSkipVerify

This commit is contained in:
nadoo committed 2018-06-28 23:20:04 +08:00
1 parent cce6fcf6ef
commit 4a72e79002
17 files changed
+127 -128

No files matched your search

+3 -3
View File
@@ -63,13 +63,13 @@ func (s *TLS) NextDialer(dstAddr string) proxy.Dialer { return s.dialer.NextDial
func (s *TLS) Dial(network, addr string) (net.Conn, error) {
cc, err := s.dialer.Dial("tcp", s.addr)
if err != nil {
log.F("proxy-tls dial to %s error: %s", s.addr, err)
log.F("[tls] dial to %s error: %s", s.addr, err)
return nil, err
}
conf := &stdtls.Config{
ServerName: s.serverName,
//InsecureSkipVerify: true,
ServerName: s.serverName,
InsecureSkipVerify: true,
}
c := stdtls.Client(cc, conf)