mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-18 08:07:56 +01:00
Fix typos in network emulation default routing
Bug: b/180750880 Change-Id: I8a927d5cb66af2292eff13382ed956def1585922 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/208481 Reviewed-by: Andrey Logvin <landrey@webrtc.org> Commit-Queue: Artem Titov <titovartem@webrtc.org> Cr-Commit-Position: refs/heads/master@{#33318}
This commit is contained in:
parent
d44532afb7
commit
28547e96cc
1 changed files with 2 additions and 2 deletions
|
@ -447,7 +447,7 @@ EmulatedEndpointImpl::Options::Options(uint64_t id,
|
|||
allow_send_packet_with_different_source_ip(
|
||||
config.allow_send_packet_with_different_source_ip),
|
||||
allow_receive_packets_with_different_dest_ip(
|
||||
config.allow_send_packet_with_different_source_ip),
|
||||
config.allow_receive_packets_with_different_dest_ip),
|
||||
log_name(ip.ToString() + " (" + config.name.value_or("") + ")") {}
|
||||
|
||||
EmulatedEndpointImpl::EmulatedEndpointImpl(const Options& options,
|
||||
|
@ -583,7 +583,7 @@ rtc::IPAddress EmulatedEndpointImpl::GetPeerLocalAddress() const {
|
|||
|
||||
void EmulatedEndpointImpl::OnPacketReceived(EmulatedIpPacket packet) {
|
||||
RTC_DCHECK_RUN_ON(task_queue_);
|
||||
if (options_.allow_receive_packets_with_different_dest_ip) {
|
||||
if (!options_.allow_receive_packets_with_different_dest_ip) {
|
||||
RTC_CHECK(packet.to.ipaddr() == options_.ip)
|
||||
<< "Routing error: wrong destination endpoint. Packet.to.ipaddr()=: "
|
||||
<< packet.to.ipaddr().ToString()
|
||||
|
|
Loading…
Reference in a new issue