From 0b7ea3240de56e1dfeae5d96aa3712f0a171cee9 Mon Sep 17 00:00:00 2001 From: Xavier Henner Date: Sat, 17 Aug 2019 11:33:14 +0200 Subject: [PATCH] typo --- httpd.go | 4 ++-- main.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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) }