libpurple/protocols/jabber/si.c

changeset 40617
3e8d3f5d6b01
parent 40603
46f9691e2ac7
child 40668
4be4ea8a8dca
equal deleted inserted replaced
40616:064ff9f4150a 40617:3e8d3f5d6b01
29 #ifndef _WIN32 29 #ifndef _WIN32
30 # include <sys/socket.h> 30 # include <sys/socket.h>
31 #endif 31 #endif
32 32
33 #include <glib/gi18n-lib.h> 33 #include <glib/gi18n-lib.h>
34
35 #include <nice.h>
34 36
35 #include <purple.h> 37 #include <purple.h>
36 38
37 #include "buddy.h" 39 #include "buddy.h"
38 #include "data.h" 40 #include "data.h"
1037 1039
1038 if (jsx->service) { 1040 if (jsx->service) {
1039 gchar *public_ip; 1041 gchar *public_ip;
1040 1042
1041 /* Include the localhost's IPs (for in-network transfers) */ 1043 /* Include the localhost's IPs (for in-network transfers) */
1042 local_ips = purple_network_get_all_local_system_ips(); 1044 local_ips = nice_interfaces_get_local_ips(FALSE);
1043 1045
1044 /* Include the public IP (assuming there is a port mapped somehow) */ 1046 /* Include the public IP (assuming there is a port mapped somehow) */
1045 public_ip = purple_network_get_my_ip_from_gio( 1047 public_ip = purple_network_get_my_ip_from_gio(
1046 G_SOCKET_CONNECTION(jsx->js->stream)); 1048 G_SOCKET_CONNECTION(jsx->js->stream));
1047 if (!purple_strequal(public_ip, "0.0.0.0") && 1049 if (!purple_strequal(public_ip, "0.0.0.0") &&

mercurial