mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-07-02 08:17:33 +08:00
add rtc tcp port config and ignore candidate when port is 0
This commit is contained in:
@@ -1204,7 +1204,9 @@ RtcSessionSdp::Ptr RtcSession::toRtcSessionSdp() const{
|
||||
}
|
||||
|
||||
for (auto &cand : m.candidate) {
|
||||
sdp_media.addAttr(std::make_shared<SdpAttrCandidate>(cand));
|
||||
if(cand.port){
|
||||
sdp_media.addAttr(std::make_shared<SdpAttrCandidate>(cand));
|
||||
}
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user