| Index: remoting/protocol/pepper_stream_channel.cc
|
| diff --git a/remoting/protocol/pepper_stream_channel.cc b/remoting/protocol/pepper_stream_channel.cc
|
| index 49d38f6c142f1ca095ddf022b2f33908e557bf54..c30bfa4738435826d8cedd252d07252b56c1db88 100644
|
| --- a/remoting/protocol/pepper_stream_channel.cc
|
| +++ b/remoting/protocol/pepper_stream_channel.cc
|
| @@ -116,6 +116,8 @@ void PepperStreamChannel::Connect(pp::Instance* pp_instance,
|
| LOG(ERROR) << "Failed to set TCP ACK delay.";
|
| }
|
|
|
| + int32 ports = PP_TRANSPORTPORTS_UDP;
|
| +
|
| if (transport_config.nat_traversal) {
|
| if (transport->SetProperty(
|
| PP_TRANSPORTPROPERTY_STUN_SERVER,
|
| @@ -140,6 +142,13 @@ void PepperStreamChannel::Connect(pp::Instance* pp_instance,
|
| pp::Var(PP_TRANSPORTRELAYMODE_GOOGLE)) != PP_OK) {
|
| LOG(ERROR) << "Failed to set relay mode.";
|
| }
|
| +
|
| + ports |= PP_TRANSPORTPORTS_STUN | PP_TRANSPORTPORTS_RELAY_UDP;
|
| + }
|
| +
|
| + if (transport->SetProperty(PP_TRANSPORTPROPERTY_PORT_TYPES,
|
| + pp::Var(ports)) != PP_OK) {
|
| + LOG(ERROR) << "Failed to set port types.";
|
| }
|
|
|
| channel_ = new PepperTransportSocketAdapter(transport, name_, this);
|
|
|