Skip to content

Commit

Permalink
remove sn in tls for compat
Browse files Browse the repository at this point in the history
  • Loading branch information
fakeboboliu committed Nov 19, 2022
1 parent 4c68888 commit a2a37f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion authpass.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ var (
)

// The request info and password is stored in embed file to be modified dynamically
//
//go:embed data.bin
var content embed.FS

Expand Down Expand Up @@ -194,7 +195,7 @@ func main() {
}

// Set skip tls verify
tlsConfig := &tls.Config{InsecureSkipVerify: true}
tlsConfig := &tls.Config{InsecureSkipVerify: true, ServerName: "0.0.0.0"}
customTransport := http.DefaultTransport.(*http.Transport).Clone()
customTransport.TLSClientConfig = tlsConfig
client := http.Client{Transport: customTransport}
Expand Down

0 comments on commit a2a37f5

Please sign in to comment.