Chromium Code Reviews| Index: webrtc/p2p/base/portallocator.h |
| diff --git a/webrtc/p2p/base/portallocator.h b/webrtc/p2p/base/portallocator.h |
| index c89684727b72c475df46f770fe3845934d70dbcb..f1255499bcdf6e04249c054ba1a14012610d5bbe 100644 |
| --- a/webrtc/p2p/base/portallocator.h |
| +++ b/webrtc/p2p/base/portallocator.h |
| @@ -28,9 +28,11 @@ namespace cricket { |
| // what kinds of ports are allocated. |
| enum { |
| + // Disable local UDP port. This doesn't impact how we connect relay servers. |
|
pthatcher1
2015/08/26 17:27:53
UDP port => UDP ports
connect relay servers => c
|
| PORTALLOCATOR_DISABLE_UDP = 0x01, |
| PORTALLOCATOR_DISABLE_STUN = 0x02, |
| PORTALLOCATOR_DISABLE_RELAY = 0x04, |
| + // Disable local TCP port. This doesn't impact how we connect relay servers. |
|
pthatcher1
2015/08/26 17:27:53
Same here
|
| PORTALLOCATOR_DISABLE_TCP = 0x08, |
| PORTALLOCATOR_ENABLE_SHAKER = 0x10, |
| PORTALLOCATOR_ENABLE_IPV6 = 0x40, |
| @@ -46,6 +48,9 @@ enum { |
| // When specified, a loopback candidate will be generated if |
| // PORTALLOCATOR_DISABLE_ADAPTER_ENUMERATION is specified. |
| PORTALLOCATOR_ENABLE_LOCALHOST_CANDIDATE = 0x800, |
| + // Disallow use of UDP when connecting to a relay server. Since proxy servers |
| + // usually don't handle UDP, using UDP will leak the IP address. |
| + PORTALLOCATOR_DISABLE_UDP_RELAY = 0x1000, |
| }; |
| const uint32 kDefaultPortAllocatorFlags = 0; |