提交 56c075a8 authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

IceServer: reject with 487 if received STUN request is ICE-CONTROLLED

上级 7e39693c
...@@ -159,23 +159,21 @@ namespace RTC ...@@ -159,23 +159,21 @@ namespace RTC
} }
} }
// TODO: Should be rejected with 487, but this makes Chrome happy:
// https://bugs.chromium.org/p/webrtc/issues/detail?id=7478
// The remote peer must be ICE controlling. // The remote peer must be ICE controlling.
// if (packet->GetIceControlled()) if (packet->GetIceControlled())
// { {
// MS_WARN_TAG(ice, "peer indicates ICE-CONTROLLED in STUN Binding Request => 487"); MS_WARN_TAG(ice, "peer indicates ICE-CONTROLLED in STUN Binding Request => 487");
//
// // Reply 487 (Role Conflict). // Reply 487 (Role Conflict).
// RTC::StunPacket* response = packet->CreateErrorResponse(487); RTC::StunPacket* response = packet->CreateErrorResponse(487);
//
// response->Serialize(StunSerializeBuffer); response->Serialize(StunSerializeBuffer);
// this->listener->OnIceServerSendStunPacket(this, response, tuple); this->listener->OnIceServerSendStunPacket(this, response, tuple);
//
// delete response; delete response;
//
// return; return;
// } }
MS_DEBUG_DEV( MS_DEBUG_DEV(
"processing STUN Binding Request [Priority:%" PRIu32 ", UseCandidate:%s]", "processing STUN Binding Request [Priority:%" PRIu32 ", UseCandidate:%s]",
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论