From c94d0848785d23c3ac6043627d86dd7aa897aa9c Mon Sep 17 00:00:00 2001 From: Ali Reza Yahya Date: Tue, 19 Mar 2024 03:04:52 +0100 Subject: [PATCH] Update redirector base URL to use HTTPS --- portal/portal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/portal/portal.go b/portal/portal.go index b341ce7..04948b7 100644 --- a/portal/portal.go +++ b/portal/portal.go @@ -52,7 +52,7 @@ func NewServer(o *Options) *Server { apiMux.HandleFunc("GET /api/routes", func(w http.ResponseWriter, r *http.Request) { o.Logger.Printf("200 - GET /api/routes\n") - o.Redirector.BaseURL = r.URL.Scheme + "://" + r.Host + o.Redirector.BaseURL = "https://" + r.Host responseOk(w, o.Redirector.ListRoutes()) })