| Index: webrtc/p2p/base/fakeportallocator.h
|
| diff --git a/webrtc/p2p/base/fakeportallocator.h b/webrtc/p2p/base/fakeportallocator.h
|
| index 7bf7f969bb8017617a6ebf84f06dbf24f08f1425..d7c30f0a6e5f7f1ef8fe7e9c3dfe3b5f48f1f00f 100644
|
| --- a/webrtc/p2p/base/fakeportallocator.h
|
| +++ b/webrtc/p2p/base/fakeportallocator.h
|
| @@ -32,16 +32,15 @@ class TestUDPPort : public UDPPort {
|
| static TestUDPPort* Create(rtc::Thread* thread,
|
| rtc::PacketSocketFactory* factory,
|
| rtc::Network* network,
|
| - const rtc::IPAddress& ip,
|
| uint16_t min_port,
|
| uint16_t max_port,
|
| const std::string& username,
|
| const std::string& password,
|
| const std::string& origin,
|
| bool emit_localhost_for_anyaddress) {
|
| - TestUDPPort* port = new TestUDPPort(thread, factory, network, ip, min_port,
|
| - max_port, username, password, origin,
|
| - emit_localhost_for_anyaddress);
|
| + TestUDPPort* port =
|
| + new TestUDPPort(thread, factory, network, min_port, max_port, username,
|
| + password, origin, emit_localhost_for_anyaddress);
|
| if (!port->Init()) {
|
| delete port;
|
| port = nullptr;
|
| @@ -62,7 +61,6 @@ class TestUDPPort : public UDPPort {
|
| TestUDPPort(rtc::Thread* thread,
|
| rtc::PacketSocketFactory* factory,
|
| rtc::Network* network,
|
| - const rtc::IPAddress& ip,
|
| uint16_t min_port,
|
| uint16_t max_port,
|
| const std::string& username,
|
| @@ -72,7 +70,6 @@ class TestUDPPort : public UDPPort {
|
| : UDPPort(thread,
|
| factory,
|
| network,
|
| - ip,
|
| min_port,
|
| max_port,
|
| username,
|
| @@ -128,9 +125,9 @@ class FakePortAllocatorSession : public PortAllocatorSession {
|
| (rtc::HasIPv6Enabled() && (flags() & PORTALLOCATOR_ENABLE_IPV6))
|
| ? ipv6_network_
|
| : ipv4_network_;
|
| - port_.reset(TestUDPPort::Create(network_thread_, factory_, &network,
|
| - network.GetBestIP(), 0, 0, username(),
|
| - password(), std::string(), false));
|
| + port_.reset(TestUDPPort::Create(network_thread_, factory_, &network, 0, 0,
|
| + username(), password(), std::string(),
|
| + false));
|
| port_->SignalDestroyed.connect(
|
| this, &FakePortAllocatorSession::OnPortDestroyed);
|
| AddPort(port_.get());
|
|
|