From 3736318a4a77cfa162859d9a68102b6c98c837f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20Alberto=20D=C3=ADaz=20Orozco?= Date: Fri, 9 Feb 2024 15:20:45 +0100 Subject: [PATCH] Fix port settings --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 1bd903c..d46c562 100644 --- a/main.go +++ b/main.go @@ -17,9 +17,9 @@ func main() { http.HandleFunc("/mutate", MutateCronjobs) http.HandleFunc("/health", Healthcheck) - log.Print("Listening on port 8443...") + log.Printf("Listening on port %d...", *port) - log.Fatal(http.ListenAndServeTLS(fmt.Sprintf(":%d", port), *cert, *key, nil)) + log.Fatal(http.ListenAndServeTLS(fmt.Sprintf(":%d", *port), *cert, *key, nil)) } func MutateCronjobs(w http.ResponseWriter, r *http.Request) {