Update main.go

This commit is contained in:
Stefano Mersi 2020-05-02 13:18:36 +02:00 committed by GitHub
parent 08b852f836
commit 582bcb19c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -164,10 +164,10 @@ func main() {
return return
} }
if certFile != "" && keyFile == "" { if certFile != "" && keyFile == "" {
log.Fatal("TLS certificate missing") log.Fatal("TLS private key file missing")
} }
if certFile == "" && keyFile != "" { if certFile == "" && keyFile != "" {
log.Fatal("TLS private key missing") log.Fatal("TLS certificate file missing")
} }
tls := certFile != "" && keyFile != "" tls := certFile != "" && keyFile != ""
if secret == "" { if secret == "" {