mirror of
https://tildegit.org/solderpunk/molly-brown
synced 2024-05-11 09:16:04 +02:00
Don't try to be clever about when to request client certs: we never know what could be in a .molly file.
This commit is contained in:
parent
bff3d6d486
commit
e70ec82594
|
@ -95,14 +95,12 @@ func launch(config Config, privInfo userInfo) int {
|
|||
}
|
||||
var tlscfg tls.Config
|
||||
tlscfg.Certificates = []tls.Certificate{cert}
|
||||
tlscfg.ClientAuth = tls.RequestClientCert
|
||||
if config.AllowTLS12 {
|
||||
tlscfg.MinVersion = tls.VersionTLS12
|
||||
} else {
|
||||
tlscfg.MinVersion = tls.VersionTLS13
|
||||
}
|
||||
if len(config.CertificateZones) > 0 {
|
||||
tlscfg.ClientAuth = tls.RequestClientCert
|
||||
}
|
||||
|
||||
// Try to chdir to /, so we don't block any mountpoints
|
||||
// But if we can't for some reason it's no big deal
|
||||
|
|
Loading…
Reference in New Issue