Fix login issue

This commit is contained in:
nxshock 2019-07-19 21:03:29 +05:00
parent 063442f1b2
commit b140a4f726

View File

@ -6,7 +6,7 @@ import (
"github.com/gorilla/mux" "github.com/gorilla/mux"
) )
var currServer Server var currServer *Server
type Server struct { type Server struct {
httpServer *http.Server httpServer *http.Server
@ -33,7 +33,7 @@ func New() *Server {
httpServer: httpServer, httpServer: httpServer,
router: router} router: router}
currServer = *server currServer = server
return server return server
} }