mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
WHIP: Improve WHIP deletion by token verification. v5.0.164, v6.0.58 (#3595)
------ Co-authored-by: chundonglinlin <chundonglinlin@163.com>
This commit is contained in:
parent
fe230365ab
commit
b1d1c7abe5
9 changed files with 32 additions and 7 deletions
|
@ -1884,6 +1884,11 @@ string SrsRtcConnection::username()
|
|||
return username_;
|
||||
}
|
||||
|
||||
string SrsRtcConnection::token()
|
||||
{
|
||||
return token_;
|
||||
}
|
||||
|
||||
ISrsKbpsDelta* SrsRtcConnection::delta()
|
||||
{
|
||||
return networks_->delta();
|
||||
|
@ -2004,6 +2009,7 @@ srs_error_t SrsRtcConnection::initialize(SrsRequest* r, bool dtls, bool srtp, st
|
|||
srs_error_t err = srs_success;
|
||||
|
||||
username_ = username;
|
||||
token_ = srs_random_str(9);
|
||||
req_ = r->copy();
|
||||
|
||||
SrsSessionConfig* cfg = &local_sdp.session_negotiate_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue