diff options
Diffstat (limited to 'internal/server')
-rw-r--r-- | internal/server/router.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/server/router.go b/internal/server/router.go index 36c2083..3e8785f 100644 --- a/internal/server/router.go +++ b/internal/server/router.go @@ -10,8 +10,8 @@ func (srv *server) ListenToRequests() { h := srv.actions mux := http.NewServeMux() server := &http.Server{ - Addr: fmt.Sprintf("localhost:%d", srv.config.ServerConfig), - Handler: mux, + Addr: fmt.Sprintf("localhost:%s", srv.config.ServerConfig.Port), + Handler: h.GetSession(mux), ReadTimeout: time.Second * 5, WriteTimeout: time.Second * 5, } |