misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
evilsocket 2018-02-25 14:22:13 +01:00
commit b55224b545

View file

@ -124,6 +124,7 @@ func (httpd *HttpServer) Configure() error {
return err
}
if certFile != "" && keyFile != "" {
if core.Exists(certFile) == false || core.Exists(keyFile) == false {
log.Info("Generating server TLS key to %s", keyFile)
log.Info("Generating server TLS certificate to %s", certFile)
@ -134,6 +135,7 @@ func (httpd *HttpServer) Configure() error {
log.Info("Loading server TLS key from %s", keyFile)
log.Info("Loading server TLS certificate from %s", certFile)
}
}
httpd.certFile = certFile
httpd.keyFile = keyFile