lede/package/lean/amule/patches/008-upnp2.patch
Tianling Shen 6e383a1471
Revert "amule: update to 2.3.3 (#7935)" (#7956)
The dependencies in the repo doesn't meet the minimum requirements for
upgrading to the latest aMule version.

This reverts commit dc43ea2936.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-09-29 11:24:13 +08:00

17 lines
447 B
Diff

diff --git a/src/UPnPBase.cpp b/src/UPnPBase.cpp
index 46ac7451e..dd244e5b0 100644
--- a/src/UPnPBase.cpp
+++ b/src/UPnPBase.cpp
@@ -828,9 +828,9 @@
int ret;
char *ipAddress = NULL;
unsigned short port = 0;
- ret = UpnpInit(ipAddress, udpPort);
+ ret = UpnpInit2(0, udpPort);
if (ret != UPNP_E_SUCCESS) {
- msg << "error(UpnpInit): Error code ";
+ msg << "error(UpnpInit2): Error code ";
goto error;
}
port = UpnpGetServerPort();