Skip to content
This repository was archived by the owner on Jan 16, 2026. It is now read-only.

Commit caad663

Browse files
authored
Merge pull request #162 from cviecco/enable-http2
Add http2 support
2 parents 2ed396c + d1ecca8 commit caad663

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

cmd/keymasterd/main.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2360,13 +2360,13 @@ func main() {
23602360
PreferServerCipherSuites: true,
23612361
CipherSuites: []uint16{
23622362
tls.TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,
2363+
tls.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,
23632364
tls.TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA,
23642365
},
23652366
}
23662367
adminSrv := &http.Server{
23672368
Addr: runtimeState.Config.Base.AdminAddress,
23682369
TLSConfig: cfg,
2369-
TLSNextProto: make(map[string]func(*http.Server, *tls.Conn, http.Handler), 0),
23702370
ReadTimeout: 5 * time.Second,
23712371
WriteTimeout: 10 * time.Second,
23722372
IdleTimeout: 120 * time.Second,
@@ -2403,7 +2403,6 @@ func main() {
24032403
Addr: runtimeState.Config.Base.HttpAddress,
24042404
Handler: serviceMux,
24052405
TLSConfig: serviceTLSConfig,
2406-
TLSNextProto: make(map[string]func(*http.Server, *tls.Conn, http.Handler), 0),
24072406
ReadTimeout: 5 * time.Second,
24082407
WriteTimeout: 10 * time.Second,
24092408
IdleTimeout: 120 * time.Second,

0 commit comments

Comments
 (0)