Mercurial > pidgin.yaz
changeset 11228:ea2ef55b3a05
[gaim-migrate @ 13367]
*** empty log message ***
committer: Tailor Script <tailor@pidgin.im>
author | Adam Warrington <awarring> |
---|---|
date | Thu, 11 Aug 2005 03:22:38 +0000 |
parents | 8b3d1b2c2c43 |
children | 67f874fadb57 |
files | src/network.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/network.c Wed Aug 10 22:24:03 2005 +0000 +++ b/src/network.c Thu Aug 11 03:22:38 2005 +0000 @@ -237,9 +237,9 @@ fcntl(listenfd, F_SETFL, O_NONBLOCK); if((controlURL = gaim_upnp_discover()) != NULL) { - if(!gaim_upnp_set_port_mapping(controlURL, port, "TCP")) { - gaim_upnp_remove_port_mapping(controlURL, port, "TCP"); - gaim_upnp_set_port_mapping(controlURL, port, "TCP"); + if(!gaim_upnp_set_port_mapping(controlURL, gaim_network_get_port_from_fd(listenfd), "TCP")) { + gaim_upnp_remove_port_mapping(controlURL, gaim_network_get_port_from_fd(listenfd), "TCP"); + gaim_upnp_set_port_mapping(controlURL, gaim_network_get_port_from_fd(listenfd), "TCP"); } free(controlURL); }