mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 03:10:12 +02:00
use correct servicetype in portforward delete as well as create
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user