Skip to content

Commit dd6a1a6

Browse files
committed
fix
Signed-off-by: alyssacgoins <[email protected]>
1 parent 92c8857 commit dd6a1a6

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

backend/src/apiserver/main.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ func initCerts() (*tls.Config, error) {
100100
tlsCfg := &tls.Config{
101101
ServerName: common.GetMLPipelineServiceName() + "." + common.GetPodNamespace() + ".svc.cluster.local",
102102
Certificates: []tls.Certificate{serverCert},
103-
NextProtos: []string{"h2", "http/1.1"},
104103
}
105104
glog.Info("TLS cert key/pair loaded.")
106105
return tlsCfg, err
@@ -463,7 +462,6 @@ func registerHTTPHandlerFromEndpoint(handler RegisterHttpHandlerFromEndpoint, se
463462
endpoint := "localhost" + *rpcPortFlag
464463
opts := []grpc.DialOption{grpc.WithInsecure(), grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(math.MaxInt32))}
465464
if tlsCfg != nil {
466-
endpoint = "passthrough:///127.0.0.1" + *rpcPortFlag
467465
opts = []grpc.DialOption{
468466
grpc.WithTransportCredentials(credentials.NewTLS(tlsCfg)),
469467
grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(math.MaxInt32)),

0 commit comments

Comments
 (0)