immortalwrt/package/lean/amule/patches/003_update-libupnp-api.patch
2020-08-03 03:23:16 +08:00

12 lines
314 B
Diff

--- a/src/UPnPBase.cpp
+++ b/src/UPnPBase.cpp
@@ -828,7 +828,7 @@ m_WanService(NULL)
int ret;
char *ipAddress = NULL;
unsigned short port = 0;
- ret = UpnpInit(ipAddress, udpPort);
+ ret = UpnpInit2(ipAddress, udpPort);
if (ret != UPNP_E_SUCCESS) {
msg << "error(UpnpInit): Error code ";
goto error;