| 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") && |