aboutsummaryrefslogtreecommitdiff
path: root/src/QXmppStun.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/QXmppStun.cpp')
-rw-r--r--src/QXmppStun.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/QXmppStun.cpp b/src/QXmppStun.cpp
index 2df5b705..378b699e 100644
--- a/src/QXmppStun.cpp
+++ b/src/QXmppStun.cpp
@@ -1141,7 +1141,9 @@ void QXmppIceComponent::readyRead()
// check whether this candidates is already known
foreach (const QXmppJingleCandidate &candidate, m_localCandidates)
{
- if (candidate.host() == reflexiveHost && candidate.port() == reflexivePort)
+ if (candidate.host() == reflexiveHost &&
+ candidate.port() == reflexivePort &&
+ candidate.type() == QXmppJingleCandidate::ServerReflexiveType)
return;
}