[FIX] resolve a bug that the web console cannot enter

This commit is contained in:
goodrain 2017-12-11 17:41:49 +08:00
parent 9897784c96
commit 398d30f43d
3 changed files with 5 additions and 6 deletions

View File

@ -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
}

View File

@ -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 !")