[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 //Run start run
func Run(s *option.WebCliServer) error { func Run(s *option.WebCliServer) error {
errChan := make(chan error) errChan := make(chan error)
ap, err := app.New(nil, &app.Options{ option := app.DefaultOptions
Address: s.Address, option.Address = s.Address
Port: s.Port, option.Port = s.Port
SessionKey: s.SessionKey, option.SessionKey = s.SessionKey
}) ap, err := app.New(nil, &option)
if err != nil { if err != nil {
return err return err
} }

View File

@ -177,7 +177,6 @@ func (app *App) handleWS(w http.ResponseWriter, r *http.Request) {
return return
} }
key := init.TenantID + "_" + init.ServiceID + "_" + init.PodName key := init.TenantID + "_" + init.ServiceID + "_" + init.PodName
log.Print(key)
md5 := md5Func(key) md5 := md5Func(key)
if md5 != init.Md5 { if md5 != init.Md5 {
log.Print("Auth is not allowed !") log.Print("Auth is not allowed !")