mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 22:26:32 +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;
|
return false;
|
||||||
}
|
}
|
||||||
sprintf(port_str, "%d", port);
|
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;
|
return r == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user