Adjust config loader of TLS & XTLS

This commit is contained in:
RPRX
2020-12-16 15:59:04 +00:00
committed by GitHub
parent 88dfed931b
commit 38faac5ffc
9 changed files with 215 additions and 195 deletions

View File

@@ -64,9 +64,7 @@ func TestExpiredCertificate(t *testing.T) {
}
func TestInsecureCertificates(t *testing.T) {
c := &Config{
AllowInsecureCiphers: true,
}
c := &Config{}
tlsConfig := c.GetTLSConfig()
if len(tlsConfig.CipherSuites) > 0 {