remove stun origin support
Bug: webrtc:12132 Change-Id: I0f32e6af77e0c553b0c3b0d047ff03e14c492b31 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/234384 Reviewed-by: Taylor Brandstetter <deadbeef@webrtc.org> Reviewed-by: Harald Alvestrand <hta@webrtc.org> Commit-Queue: Harald Alvestrand <hta@webrtc.org> Cr-Commit-Position: refs/heads/main@{#35202}
This commit is contained in:

committed by
WebRTC LUCI CQ

parent
f77f35b764
commit
ba29ce320f
@ -59,7 +59,6 @@ void StunRequestManager::Send(StunRequest* request) {
|
||||
void StunRequestManager::SendDelayed(StunRequest* request, int delay) {
|
||||
request->set_manager(this);
|
||||
RTC_DCHECK(requests_.find(request->id()) == requests_.end());
|
||||
request->set_origin(origin_);
|
||||
request->Construct();
|
||||
requests_[request->id()] = request;
|
||||
if (delay > 0) {
|
||||
@ -213,10 +212,6 @@ StunRequest::~StunRequest() {
|
||||
|
||||
void StunRequest::Construct() {
|
||||
if (msg_->type() == 0) {
|
||||
if (!origin_.empty()) {
|
||||
msg_->AddAttribute(
|
||||
std::make_unique<StunByteStringAttribute>(STUN_ATTR_ORIGIN, origin_));
|
||||
}
|
||||
Prepare(msg_);
|
||||
RTC_DCHECK(msg_->type() != 0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user