Skip to content

Commit a06f177

Browse files
committed
fix tls config
1 parent 0b8dd10 commit a06f177

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

h2s.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ func NewServer(c *Config) (*Server, error) {
175175
if !certPool.AppendCertsFromPEM(pem) {
176176
return nil, errors.New("h2s: create server: tls: failed to load rootCAs")
177177
}
178-
tlsConfig.RootCA = certPool
178+
tlsConfig.RootCAs = certPool
179179
}
180180

181181
if t.CertFile != "" && t.KeyFile != "" {

0 commit comments

Comments
 (0)