mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-02 03:37:46 +08:00
[FIX] resolve a bug that the web console cannot enter
This commit is contained in:
parent
9897784c96
commit
398d30f43d
@ -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
|
||||
}
|
||||
|
@ -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 !")
|
||||
|
Loading…
Reference in New Issue
Block a user