Skip to content

Commit

Permalink
Add NextProtos header for ALPN
Browse files Browse the repository at this point in the history
  • Loading branch information
sourishkrout committed Jan 9, 2025
1 parent e462959 commit e9f6627
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/tls/tls.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ func LoadServerConfig(certFile, keyFile string) (*tls.Config, error) {
ClientAuth: tls.RequireAndVerifyClientCert,
ClientCAs: certPool,
MinVersion: tls.VersionTLS12,
NextProtos: []string{"h2"},
}, nil
}

Expand Down

0 comments on commit e9f6627

Please sign in to comment.