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()) })