Skip to content

Commit

Permalink
fix: [http.go,fingerprint.go] allow min tls version is tls1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
XinRoom committed Jan 12, 2023
1 parent 91aa3f1 commit 3d9b586
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/port/fingerprint/fingerprint.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ func matchRule(network string, ip net.IP, _port uint16, serviceRule serviceRule)
// tls
connTls, err = tls.DialWithDialer(&net.Dialer{Timeout: 2 * time.Second}, network, address, &tls.Config{
InsecureSkipVerify: true,
MinVersion: tls.VersionTLS10,
})
if err != nil {
if strings.HasSuffix(err.Error(), "i/o timeout") {
Expand Down
1 change: 1 addition & 0 deletions core/port/fingerprint/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ func newHttpClient() *http.Client {
transport := &http.Transport{
TLSClientConfig: &tls.Config{
InsecureSkipVerify: true,
MinVersion: tls.VersionTLS10,
},
DialContext: (&net.Dialer{
Timeout: 5 * time.Second,
Expand Down

0 comments on commit 3d9b586

Please sign in to comment.