mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 10:40:05 +08:00
rtc fix sdp ufag should not contain _ + = - by spec (#2993)
rtc 中的sdp ufrag 只能有数字与字母组成,不能包含其他符号(根据RFC 5245),包含 _ + = - , 在chromium 项目中有人提出过,详情见( https://crbug.com/1053756 )。chrome 也能正常处理_ + = - 等符号,但是在日志中会有警告如下 `[WARNING:transport_description.cc(32)] '-', '=', '#' and '-' are not valid ice-char and thus not permitted in ufrag or pwd. This is a protocol violation that is permitted to allow upgrading but will be rejected in the future. See https://crbug.com/1053756` 因此修改
This commit is contained in:
parent
88f7f46497
commit
22f5f56130
@ -90,7 +90,7 @@ const char* sockTypeStr(Session* session) {
|
|||||||
|
|
||||||
WebRtcTransport::WebRtcTransport(const EventPoller::Ptr &poller) {
|
WebRtcTransport::WebRtcTransport(const EventPoller::Ptr &poller) {
|
||||||
_poller = poller;
|
_poller = poller;
|
||||||
_identifier = "zlm_" + to_string(++s_key);
|
_identifier = "zlm" + to_string(++s_key);
|
||||||
_packet_pool.setSize(64);
|
_packet_pool.setSize(64);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user