From b89df9cd74762e44b561b3880261f7907e21a378 Mon Sep 17 00:00:00 2001 From: Leon Jacobs Date: Mon, 16 Sep 2024 12:42:05 +0200 Subject: [PATCH] (fix) use configured host to start web server --- web/server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/server.go b/web/server.go index fa6b44c8..e6c273f8 100644 --- a/web/server.go +++ b/web/server.go @@ -91,8 +91,8 @@ func (s *Server) Run() { // the spa r.Handle("/*", SpaHandler()) - log.Info("starting web server", "port", s.Port) - if err := http.ListenAndServe(":"+strconv.Itoa(s.Port), r); err != nil { + log.Info("starting web server", "host", s.Host, "port", s.Port) + if err := http.ListenAndServe(s.Host+":"+strconv.Itoa(s.Port), r); err != nil { log.Error("server listen error", "err", err) } }