diff options
author | Gary Kramlich <grim@reaperworld.com> | 2022-10-23 22:31:02 -0500 |
---|---|---|
committer | Gary Kramlich <grim@reaperworld.com> | 2022-10-23 22:31:02 -0500 |
commit | bcc3bac9e7f2fee4f0232c620963ab59edd9bb1a (patch) | |
tree | 7da9de4d29e7c467e6ff6196d87909401e9297ea /libpurple/network.c | |
parent | a70091a69ecd46f94b9ba484ff8fd351c4cae8fb (diff) | |
download | pidgin-bcc3bac9e7f2fee4f0232c620963ab59edd9bb1a.tar.gz |
Remove the upnp API
We already know that GUPnP isn't going to work for us and have started
traversity to fill that gap. So in the meantime, we can just get rid of the
existing UPnP API.
Testing Done:
Compiled
Reviewed at https://reviews.imfreedom.org/r/1959/
Diffstat (limited to 'libpurple/network.c')
-rw-r--r-- | libpurple/network.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/libpurple/network.c b/libpurple/network.c index 805194116b..cf42331ad2 100644 --- a/libpurple/network.c +++ b/libpurple/network.c @@ -46,7 +46,6 @@ #include "network.h" #include "prefs.h" #include "stun.h" -#include "upnp.h" static gboolean force_online = FALSE; @@ -134,12 +133,6 @@ purple_network_discover_my_ip(void) return; } - /* Attempt to get the IP from a NAT device using UPnP */ - ip = purple_upnp_get_public_ip(); - if (ip != NULL) { - return; - } - /* Attempt to get the IP from a NAT device using NAT-PMP */ ip = purple_pmp_get_public_ip(); if (ip != NULL) { @@ -167,12 +160,6 @@ purple_network_get_my_ip_from_gio(GSocketConnection *sockconn) return g_strdup(stun->publicip); } - /* Attempt to get the IP from a NAT device using UPnP */ - ip = purple_upnp_get_public_ip(); - if (ip != NULL) { - return g_strdup(ip); - } - /* Attempt to get the IP from a NAT device using NAT-PMP */ ip = purple_pmp_get_public_ip(); if (ip != NULL) { @@ -325,11 +312,7 @@ purple_network_init(void) purple_prefs_add_int ("/purple/network/ports_range_start", 1024); purple_prefs_add_int ("/purple/network/ports_range_end", 2048); - if(purple_prefs_get_bool("/purple/network/map_ports") || purple_prefs_get_bool("/purple/network/auto_ip")) - purple_upnp_discover(NULL, NULL); - purple_pmp_init(); - purple_upnp_init(); purple_network_set_stun_server( purple_prefs_get_string("/purple/network/stun_server")); @@ -342,9 +325,4 @@ purple_network_uninit(void) { g_free(stun_ip); g_free(turn_ip); - - /* TODO: clean up remaining port mappings, note calling - purple_upnp_remove_port_mapping from here doesn't quite work... */ - - purple_upnp_uninit(); } |