diff --git a/internal/healthcheck/http.go b/internal/healthcheck/http.go index 53c9a797..f2375347 100644 --- a/internal/healthcheck/http.go +++ b/internal/healthcheck/http.go @@ -2,10 +2,11 @@ package healthcheck import ( "fmt" - log "github.com/sirupsen/logrus" "net/http" "os" "strings" + + log "github.com/sirupsen/logrus" ) func HttpRequest(addr string, base string) error { diff --git a/main.go b/main.go index 3399be45..8126d8ed 100644 --- a/main.go +++ b/main.go @@ -72,6 +72,7 @@ func main() { if err := healthcheck.HttpRequest(args.Addr, args.Base); err != nil { log.Fatal(err) } + return } if args.AuthProvider != "none" && args.AuthProvider != "forward-proxy" && args.AuthProvider != "simple" {