Skip to content

Commit

Permalink
Add next protocols in default TLS configuration (#651)
Browse files Browse the repository at this point in the history
* Add next protocols in default TLS configuration

* Fix CI pipeline
  • Loading branch information
ErikPelli authored Feb 22, 2025
1 parent 591e8ff commit 0003d27
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ linters:
- usestdlibvars
- wastedassign
- whitespace
- exportloopref

disable:
- bodyclose
Expand Down
1 change: 1 addition & 0 deletions certs.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ var tlsClientSkipVerify = &tls.Config{InsecureSkipVerify: true}

var defaultTLSConfig = &tls.Config{
InsecureSkipVerify: true,
NextProtos: []string{"h2", "http/1.1"},
}

var CA_CERT = []byte(`-----BEGIN CERTIFICATE-----
Expand Down

0 comments on commit 0003d27

Please sign in to comment.