Index: webrtc/p2p/client/basicportallocator.cc |
diff --git a/webrtc/p2p/client/basicportallocator.cc b/webrtc/p2p/client/basicportallocator.cc |
index aebe0f24ee6e2834ce73a6a3de23ad862450bd8e..94de2b55f54fbd772fca7c776e8ba6254ede47e6 100644 |
--- a/webrtc/p2p/client/basicportallocator.cc |
+++ b/webrtc/p2p/client/basicportallocator.cc |
@@ -699,6 +699,8 @@ void BasicPortAllocatorSession::AddAllocatedPort(Port* port, |
port->set_content_name(content_name()); |
port->set_component(component()); |
port->set_generation(generation()); |
+ if (allocator_->proxy().type != rtc::PROXY_NONE) |
+ port->set_proxy(allocator_->user_agent(), allocator_->proxy()); |
port->set_send_retransmit_count_attribute( |
(flags() & PORTALLOCATOR_ENABLE_STUN_RETRANSMIT_ATTRIBUTE) != 0); |