/soc/2013/ashmew2/filetransferX: 2701c64961d6: Sending out prope...
Ashish Gupta
ashmew2 at gmail.com
Wed Aug 7 21:49:08 EDT 2013
Changeset: 2701c64961d61c89813356cf0b256c9b474fbe82
Author: Ashish Gupta <ashmew2 at gmail.com>
Date: 2013-08-08 04:00 +0530
Branch: filetransferX
URL: https://hg.pidgin.im/soc/2013/ashmew2/filetransferX/rev/2701c64961d6
Description:
Sending out proper candidates
diffstat:
libpurple/protocols/jabber/google/google_session.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (31 lines):
diff --git a/libpurple/protocols/jabber/google/google_session.c b/libpurple/protocols/jabber/google/google_session.c
--- a/libpurple/protocols/jabber/google/google_session.c
+++ b/libpurple/protocols/jabber/google/google_session.c
@@ -1080,6 +1080,7 @@ gtalk_xfer_send_candidates(GoogleSession
if(username)
xmlnode_set_attrib(candidate, "username", username);
+ xmlnode_set_attrib(candidate, "name", "private-1");
xmlnode_set_attrib(candidate, "password",
password != NULL ? password : "");
if(pref)
@@ -1089,15 +1090,14 @@ gtalk_xfer_send_candidates(GoogleSession
purple_media_candidate_get_protocol(transport)
== PURPLE_MEDIA_NETWORK_PROTOCOL_UDP ?
"udp" : "tcp");
-/*
+
xmlnode_set_attrib(candidate, "type", type ==
- PURPLE_MEDIA_CANDIDATE_TYPE_HOST ? "local" :
- type ==
PURPLE_MEDIA_CANDIDATE_TYPE_SRFLX ? "stun" :
type ==
PURPLE_MEDIA_CANDIDATE_TYPE_RELAY ? "relay" :
- NULL);
-*/
+ "local"
+ );
+
xmlnode_set_attrib(candidate, "generation", "0");
xmlnode_set_attrib(candidate, "network", "0");
More information about the Commits
mailing list