diff --git a/webrtc/p2p/base/turnport.cc b/webrtc/p2p/base/turnport.cc index 56dadde9bb..e3caeb59d3 100644 --- a/webrtc/p2p/base/turnport.cc +++ b/webrtc/p2p/base/turnport.cc @@ -376,7 +376,11 @@ bool TurnPort::CreateTurnClientSocket() { } void TurnPort::OnSocketConnect(rtc::AsyncPacketSocket* socket) { - RTC_DCHECK(server_address_.proto == PROTO_TCP); + // This slot should only be invoked if we're using a connection-oriented + // protocol. + RTC_DCHECK(server_address_.proto == PROTO_TCP || + server_address_.proto == PROTO_TLS); + // Do not use this port if the socket bound to a different address than // the one we asked for. This is seen in Chrome, where TCP sockets cannot be // given a binding address, and the platform is expected to pick the