diff options
author | Sebastien Vincent <seb@jitsi.org> | 2010-12-15 17:07:27 +0000 |
---|---|---|
committer | Sebastien Vincent <seb@jitsi.org> | 2010-12-15 17:07:27 +0000 |
commit | 8a23901ba4e2554f11fc47c8ad3500e92e5e773f (patch) | |
tree | 31b3fd6636da3e2c339cdb53a617c1bbedfa2a15 /src/net | |
parent | 27bee30679e74ca19469e33ac740696f090fa53f (diff) | |
download | jitsi-8a23901ba4e2554f11fc47c8ad3500e92e5e773f.zip jitsi-8a23901ba4e2554f11fc47c8ad3500e92e5e773f.tar.gz jitsi-8a23901ba4e2554f11fc47c8ad3500e92e5e773f.tar.bz2 |
Use only the username part of the JID for TURN credentials.
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/java/sip/communicator/impl/protocol/jabber/IceUdpTransportManager.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/net/java/sip/communicator/impl/protocol/jabber/IceUdpTransportManager.java b/src/net/java/sip/communicator/impl/protocol/jabber/IceUdpTransportManager.java index 7fbe90b..1760a12 100644 --- a/src/net/java/sip/communicator/impl/protocol/jabber/IceUdpTransportManager.java +++ b/src/net/java/sip/communicator/impl/protocol/jabber/IceUdpTransportManager.java @@ -21,6 +21,7 @@ import org.ice4j.*; import org.ice4j.ice.*; import org.ice4j.ice.harvest.*; import org.ice4j.security.*; + import org.xmpp.jnodes.smack.*; /** @@ -111,7 +112,8 @@ public class IceUdpTransportManager { //the default server is supposed to use the same user name and //password as the account itself. - String username = provider.getOurJID(); + String username = org.jivesoftware.smack.util.StringUtils.parseName( + provider.getOurJID()); String password = JabberActivator.getProtocolProviderFactory().loadPassword( accID); |