Skip to content

Commit 8c19597

Browse files
authored
Merge pull request #3189 from dmcgowan/update-server-alpn
Add server next protos configuration
2 parents e8ecf83 + 9a32e27 commit 8c19597

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

ca/config.go

+5-3
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,15 @@ import (
1515

1616
cfconfig "github.com/cloudflare/cfssl/config"
1717
events "github.com/docker/go-events"
18+
"github.com/opencontainers/go-digest"
19+
"github.com/pkg/errors"
20+
"google.golang.org/grpc/credentials"
21+
1822
"github.com/moby/swarmkit/v2/api"
1923
"github.com/moby/swarmkit/v2/connectionbroker"
2024
"github.com/moby/swarmkit/v2/identity"
2125
"github.com/moby/swarmkit/v2/log"
2226
"github.com/moby/swarmkit/v2/watch"
23-
"github.com/opencontainers/go-digest"
24-
"github.com/pkg/errors"
25-
"google.golang.org/grpc/credentials"
2627
)
2728

2829
const (
@@ -649,6 +650,7 @@ func NewServerTLSConfig(certs []tls.Certificate, rootCAPool *x509.CertPool) (*tl
649650
ClientCAs: rootCAPool,
650651
PreferServerCipherSuites: true,
651652
MinVersion: tls.VersionTLS12,
653+
NextProtos: alpnProtoStr,
652654
}, nil
653655
}
654656

0 commit comments

Comments
 (0)