mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix fms token traverse bug, always update the token by the latest valid client.
This commit is contained in:
parent
6c70e9192b
commit
db253bc76b
4 changed files with 32 additions and 2 deletions
|
@ -108,6 +108,22 @@ SrsRequest* SrsRequest::copy()
|
|||
return cp;
|
||||
}
|
||||
|
||||
void SrsRequest::update_auth(SrsRequest* req)
|
||||
{
|
||||
pageUrl = req->pageUrl;
|
||||
swfUrl = req->swfUrl;
|
||||
tcUrl = req->tcUrl;
|
||||
|
||||
if (args) {
|
||||
srs_freep(args);
|
||||
}
|
||||
if (req->args) {
|
||||
args = req->args->copy()->to_object();
|
||||
}
|
||||
|
||||
srs_info("update req of soruce for auth ok");
|
||||
}
|
||||
|
||||
int SrsRequest::discovery_app()
|
||||
{
|
||||
int ret = ERROR_SUCCESS;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue