mirror of
https://github.com/tailscale/tailscale.git
synced 2025-07-29 15:23:45 +00:00
k8s-operator/api-proxy: always disable HTTP/2 for API server proxy
Change-Id: Iafb91ad1cbeed9c5231a1525d4563164fc1f002f Signed-off-by: Tom Proctor <tomhjp@users.noreply.github.com>
This commit is contained in:
parent
c87f44b687
commit
7e6cfa283b
@ -116,6 +116,7 @@ func (ap *APIServerProxy) Run(ctx context.Context) error {
|
|||||||
ap.hs = &http.Server{
|
ap.hs = &http.Server{
|
||||||
Handler: mux,
|
Handler: mux,
|
||||||
ErrorLog: zap.NewStdLog(ap.log.Desugar()),
|
ErrorLog: zap.NewStdLog(ap.log.Desugar()),
|
||||||
|
TLSNextProto: make(map[string]func(*http.Server, *tls.Conn, http.Handler)),
|
||||||
}
|
}
|
||||||
|
|
||||||
mode := "noauth"
|
mode := "noauth"
|
||||||
@ -140,7 +141,6 @@ func (ap *APIServerProxy) Run(ctx context.Context) error {
|
|||||||
GetCertificate: ap.lc.GetCertificate,
|
GetCertificate: ap.lc.GetCertificate,
|
||||||
NextProtos: []string{"http/1.1"},
|
NextProtos: []string{"http/1.1"},
|
||||||
}
|
}
|
||||||
ap.hs.TLSNextProto = make(map[string]func(*http.Server, *tls.Conn, http.Handler))
|
|
||||||
} else {
|
} else {
|
||||||
var err error
|
var err error
|
||||||
tsLn, err = ap.ts.Listen("tcp", ":80")
|
tsLn, err = ap.ts.Listen("tcp", ":80")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user