mirror of
https://github.com/kenzok8/small-package
synced 2025-01-08 13:27:36 +08:00
17 lines
447 B
Diff
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();
|