Index: webrtc/p2p/base/basicpacketsocketfactory.cc |
diff --git a/webrtc/p2p/base/basicpacketsocketfactory.cc b/webrtc/p2p/base/basicpacketsocketfactory.cc |
index 51e9b07fc0c660c0b7e743ea0b8ab75ba5d514a5..dca69c9f5ba7a1a077f59993ca1f10474d330f4d 100644 |
--- a/webrtc/p2p/base/basicpacketsocketfactory.cc |
+++ b/webrtc/p2p/base/basicpacketsocketfactory.cc |
@@ -138,6 +138,10 @@ AsyncPacketSocket* BasicPacketSocketFactory::CreateClientTcpSocket( |
return NULL; |
} |
+ if (opts & PacketSocketFactory::OPT_INSECURE_CERT_CHECK) { |
+ ssl_adapter->set_ignore_bad_cert(true); |
+ } |
+ |
socket = ssl_adapter; |
if (ssl_adapter->StartSSL(remote_address.hostname().c_str(), false) != 0) { |