Index: webrtc/p2p/base/stunport.cc |
diff --git a/webrtc/p2p/base/stunport.cc b/webrtc/p2p/base/stunport.cc |
index f99965bd72ee6672c46f2c37b35445dd425e1637..67cf789da8e3c869322d959f6939a2e339db9ed9 100644 |
--- a/webrtc/p2p/base/stunport.cc |
+++ b/webrtc/p2p/base/stunport.cc |
@@ -253,9 +253,10 @@ void UDPPort::MaybePrepareStunCandidate() { |
} |
Connection* UDPPort::CreateConnection(const Candidate& address, |
- CandidateOrigin origin) { |
- if (address.protocol() != "udp") |
+ CandidateOrigin origin) { |
+ if (!SupportsProtocol(address.protocol())) { |
return NULL; |
+ } |
if (!IsCompatibleAddress(address.address())) { |
return NULL; |