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
|
//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
|
||||||
}
|
}
|
||||||
|
@ -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 !")
|
||||||
|
Loading…
Reference in New Issue
Block a user