Index: webrtc/p2p/base/basicpacketsocketfactory.cc |
diff --git a/webrtc/p2p/base/basicpacketsocketfactory.cc b/webrtc/p2p/base/basicpacketsocketfactory.cc |
index c478d6311202108bbaff642768508171aa1f9f06..15191358826e8cc4ebfdb6aa42e142e3e46738ca 100644 |
--- a/webrtc/p2p/base/basicpacketsocketfactory.cc |
+++ b/webrtc/p2p/base/basicpacketsocketfactory.cc |
@@ -120,16 +120,6 @@ AsyncPacketSocket* BasicPacketSocketFactory::CreateClientTcpSocket( |
return NULL; |
} |
- // If using a proxy, wrap the socket in a proxy socket. |
- if (proxy_info.type == PROXY_SOCKS5) { |
- socket = new AsyncSocksProxySocket( |
- socket, proxy_info.address, proxy_info.username, proxy_info.password); |
- } else if (proxy_info.type == PROXY_HTTPS) { |
- socket = |
- new AsyncHttpsProxySocket(socket, user_agent, proxy_info.address, |
- proxy_info.username, proxy_info.password); |
- } |
- |
// Assert that at most one TLS option is used. |
int tlsOpts = |
opts & (PacketSocketFactory::OPT_TLS | PacketSocketFactory::OPT_TLS_FAKE | |