aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/QXmppStun.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/QXmppStun.cpp b/src/QXmppStun.cpp
index 3aa3fe31..092484b4 100644
--- a/src/QXmppStun.cpp
+++ b/src/QXmppStun.cpp
@@ -719,7 +719,9 @@ bool QXmppStunSocket::bind()
candidate.setComponent(m_component);
candidate.setHost(entry.ip());
candidate.setId(generateStanzaHash(10));
+#if QT_VERSION >= 0x040500
candidate.setNetwork(interface.index());
+#endif
candidate.setPort(m_socket->localPort());
candidate.setPriority(2130706432 - m_component);
candidate.setProtocol("udp");