Update main.go
This commit is contained in:
parent
08b852f836
commit
fad0e2d7c0
1 changed files with 2 additions and 2 deletions
4
main.go
4
main.go
|
|
@ -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 == "" {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue