From 398d30f43d25ea054e93725160881be8fc16f05e Mon Sep 17 00:00:00 2001 From: goodrain Date: Mon, 11 Dec 2017 17:41:49 +0800 Subject: [PATCH] [FIX] resolve a bug that the web console cannot enter --- cmd/webcli/server/server.go | 10 +++++----- cmd/webcli/{mq.go => webcli.go} | 0 pkg/webcli/app/app.go | 1 - 3 files changed, 5 insertions(+), 6 deletions(-) rename cmd/webcli/{mq.go => webcli.go} (100%) diff --git a/cmd/webcli/server/server.go b/cmd/webcli/server/server.go index 0e9981396..700669892 100644 --- a/cmd/webcli/server/server.go +++ b/cmd/webcli/server/server.go @@ -36,11 +36,11 @@ import ( //Run start run func Run(s *option.WebCliServer) error { errChan := make(chan error) - ap, err := app.New(nil, &app.Options{ - Address: s.Address, - Port: s.Port, - SessionKey: s.SessionKey, - }) + option := app.DefaultOptions + option.Address = s.Address + option.Port = s.Port + option.SessionKey = s.SessionKey + ap, err := app.New(nil, &option) if err != nil { return err } diff --git a/cmd/webcli/mq.go b/cmd/webcli/webcli.go similarity index 100% rename from cmd/webcli/mq.go rename to cmd/webcli/webcli.go diff --git a/pkg/webcli/app/app.go b/pkg/webcli/app/app.go index 9704e47c5..5760d203f 100644 --- a/pkg/webcli/app/app.go +++ b/pkg/webcli/app/app.go @@ -177,7 +177,6 @@ func (app *App) handleWS(w http.ResponseWriter, r *http.Request) { return } key := init.TenantID + "_" + init.ServiceID + "_" + init.PodName - log.Print(key) md5 := md5Func(key) if md5 != init.Md5 { log.Print("Auth is not allowed !")