We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a42ebf6 commit 27bc5a6Copy full SHA for 27bc5a6
config/target.go
@@ -243,7 +243,7 @@ func tlsVersionStringToUint(v string) uint16 {
243
}
244
245
func loadCerts(tlscfg *tls.Config, tc *TargetConfig) error {
246
- if *tc.TLSCert != "" && *tc.TLSKey != "" {
+ if (tc.TLSCert != nil && *tc.TLSCert != "") && (tc.TLSKey != nil && *tc.TLSKey != "") {
247
certificate, err := tls.LoadX509KeyPair(*tc.TLSCert, *tc.TLSKey)
248
if err != nil {
249
return err
0 commit comments