1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-13 12:31:52 +02:00

use correct servicetype in portforward delete as well as create

This commit is contained in:
Leo Franchi 2011-08-15 11:02:21 -04:00
parent 283a3bd216
commit f9c623d654

View File

@ -162,7 +162,7 @@ Portfwd::remove( unsigned short port )
return false;
}
sprintf(port_str, "%d", port);
int r = UPNP_DeletePortMapping(urls->controlURL, data->CIF.servicetype, port_str, "TCP", NULL);
int r = UPNP_DeletePortMapping(urls->controlURL, data->first.servicetype, port_str, "TCP", NULL);
return r == 0;
}