mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2024-11-23 18:15:24 +00:00
Don't require TLS client certificate
This commit is contained in:
parent
e110dd46fd
commit
74ca02edfd
@ -8,7 +8,7 @@ import (
|
|||||||
func (c *Core) generateTLSConfig(cert *tls.Certificate) (*tls.Config, error) {
|
func (c *Core) generateTLSConfig(cert *tls.Certificate) (*tls.Config, error) {
|
||||||
config := &tls.Config{
|
config := &tls.Config{
|
||||||
Certificates: []tls.Certificate{*cert},
|
Certificates: []tls.Certificate{*cert},
|
||||||
ClientAuth: tls.RequireAnyClientCert,
|
ClientAuth: tls.NoClientCert,
|
||||||
GetClientCertificate: func(cri *tls.CertificateRequestInfo) (*tls.Certificate, error) {
|
GetClientCertificate: func(cri *tls.CertificateRequestInfo) (*tls.Certificate, error) {
|
||||||
return cert, nil
|
return cert, nil
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user