| 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..0f97950291ca9240b367f6f9ced55c66ce2097d0 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 protocols = PP_TRANSPORTPROTOCOL_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.";
|
| }
|
| +
|
| + protocols |= PP_TRANSPORTPROTOCOL_STUN | PP_TRANSPORTPROTOCOL_RELAY_UDP;
|
| + }
|
| +
|
| + if (transport->SetProperty(PP_TRANSPORTPROPERTY_PROTOCOLS,
|
| + pp::Var(protocols)) != PP_OK) {
|
| + LOG(ERROR) << "Failed to set port types.";
|
| }
|
|
|
| channel_ = new PepperTransportSocketAdapter(transport, name_, this);
|
|
|