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:
parent
283a3bd216
commit
f9c623d654
2
thirdparty/libportfwd/src/portfwd.cpp
vendored
2
thirdparty/libportfwd/src/portfwd.cpp
vendored
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user