src/ft.c

changeset 6242
3f9a64e8dd2f
parent 6241
34d166a31152
child 6263
6fec763a314c
--- a/src/ft.c	Sun Jul 20 03:44:39 2003 +0000
+++ b/src/ft.c	Sun Jul 20 05:11:14 2003 +0000
@@ -31,6 +31,7 @@
 GaimXfer *
 gaim_xfer_new(GaimAccount *account, GaimXferType type, const char *who)
 {
+	const char *ip;
 	GaimXfer *xfer;
 	GaimXferUiOps *ui_ops;
 
@@ -45,6 +46,12 @@
 	xfer->who     = g_strdup(who);
 	xfer->ui_ops  = gaim_get_xfer_ui_ops();
 
+	if ((ip = gaim_account_get_public_ip(account)) != NULL)
+		ip = gaim_prefs_get_string("/core/ft/public_ip");
+
+	if (ip != NULL && *ip != '\0')
+		xfer->local_ip = g_strdup(ip);
+
 	ui_ops = gaim_xfer_get_ui_ops(xfer);
 
 	if (ui_ops != NULL && ui_ops->new_xfer != NULL)

mercurial