diff options
Diffstat (limited to 'content/renderer/p2p')
-rw-r--r-- | content/renderer/p2p/port_allocator.cc | 2 | ||||
-rw-r--r-- | content/renderer/p2p/port_allocator.h | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/content/renderer/p2p/port_allocator.cc b/content/renderer/p2p/port_allocator.cc index 7beb3ecc..488df30 100644 --- a/content/renderer/p2p/port_allocator.cc +++ b/content/renderer/p2p/port_allocator.cc @@ -31,6 +31,8 @@ P2PPortAllocator::P2PPortAllocator( uint32 flags = 0; if (config_.disable_tcp_transport) flags |= cricket::PORTALLOCATOR_DISABLE_TCP; + if (!config_.enable_multiple_routes) + flags |= cricket::PORTALLOCATOR_DISABLE_ADAPTER_ENUMERATION; set_flags(flags); set_allow_tcp_listen(false); } diff --git a/content/renderer/p2p/port_allocator.h b/content/renderer/p2p/port_allocator.h index 3cb1377..057f37b 100644 --- a/content/renderer/p2p/port_allocator.h +++ b/content/renderer/p2p/port_allocator.h @@ -36,6 +36,9 @@ class P2PPortAllocator : public cricket::BasicPortAllocator { // Disable TCP-based transport when set to true. bool disable_tcp_transport; + + // Disable binding to individual NICs when set to false. + bool enable_multiple_routes; }; P2PPortAllocator(P2PSocketDispatcher* socket_dispatcher, |