updated to support multiple notice handlers with a fix on race condition accessing cts.Token on the client side

This commit is contained in:
2025-03-21 12:53:16 +09:00
parent 8cde9f08d4
commit e01a6b347c
3 changed files with 23 additions and 17 deletions

View File

@ -270,7 +270,7 @@ func (ctl *client_ctl_client_conns) ServeHTTP(w http.ResponseWriter, req *http.R
CurrentServerIndex: cts.cfg.Index,
ServerAddr: cts.remote_addr.Get(),
ClientAddr: cts.local_addr.Get(),
ClientToken: cts.Token,
ClientToken: cts.Token.Get(),
Routes: jsp,
})
}
@ -385,7 +385,7 @@ func (ctl *client_ctl_client_conns_id) ServeHTTP(w http.ResponseWriter, req *htt
CurrentServerIndex: cts.cfg.Index,
ServerAddr: cts.remote_addr.Get(),
ClientAddr: cts.local_addr.Get(),
ClientToken: cts.Token,
ClientToken: cts.Token.Get(),
Routes: jsp,
}