diff pidgin/gtkmain.c @ 18753:2cc872f4f620

Fix stun to work on startup (this is is a temporary hack until purple_prefs_load() happens in the core). Fixes #2334
author Daniel Atallah <daniel.atallah@gmail.com>
date Tue, 31 Jul 2007 03:26:05 +0000
parents 0e8b2bb66a7d
children f8bea3e688b0 536ee8e459ef
line wrap: on
line diff
--- a/pidgin/gtkmain.c	Mon Jul 30 22:37:00 2007 +0000
+++ b/pidgin/gtkmain.c	Tue Jul 31 03:26:05 2007 +0000
@@ -31,6 +31,7 @@
 #include "eventloop.h"
 #include "ft.h"
 #include "log.h"
+#include "network.h"
 #include "notify.h"
 #include "prefs.h"
 #include "prpl.h"
@@ -760,7 +761,6 @@
 #endif
 		return 0;
 	}
-		
 
 	/* TODO: Move blist loading into purple_blist_init() */
 	purple_set_blist(purple_blist_new());
@@ -777,6 +777,10 @@
 	/* TODO: Move pounces loading into purple_pounces_init() */
 	purple_pounces_load();
 
+	/* Call this early on to try to auto-detect our IP address and
+	 * hopefully save some time later.
+	 * TODO: move this (back) into purple_core_init() when purple_prefs_load() is in purple_prefs_init() */
+	 purple_network_get_my_ip(-1);
 
 	/* HACK BY SEANEGAN:
 	 * We've renamed prpl-oscar to prpl-aim and prpl-icq, accordingly.