diff --git a/httpd.go b/httpd.go index b00002d..9f801fe 100644 --- a/httpd.go +++ b/httpd.go @@ -130,8 +130,8 @@ func NewHTTPServer(port, key, cert string, s *OpenVpnMgt) { switch { case key == "" && cert == "": - log.Fatal(http.ListenAndServeTLS(port, cert, key, nil)) - default: log.Fatal(http.ListenAndServe(port, nil)) + default: + log.Fatal(http.ListenAndServeTLS(port, cert, key, nil)) } } diff --git a/main.go b/main.go index a84f7db..3552fca 100644 --- a/main.go +++ b/main.go @@ -22,7 +22,7 @@ func main() { // parseconfig if config, err = uconfig.New(*configFile); err != nil { - log.Println(err) + log.Println("config", configFile, err) os.Exit(1) }