mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
tls: allow InsecureSkipVerify
This commit is contained in:
1 parent
cce6fcf6ef
commit
4a72e79002
17 files changed
+127
-128
No files matched your search
+3
-3
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user