|
|
|
@ -2042,7 +2042,7 @@ namespace nodetool
|
|
|
|
|
char lanAddress[64];
|
|
|
|
|
result = UPNP_GetValidIGD(deviceList, &urls, &igdData, lanAddress, sizeof lanAddress);
|
|
|
|
|
freeUPNPDevlist(deviceList);
|
|
|
|
|
if (result != 0) {
|
|
|
|
|
if (result > 0) {
|
|
|
|
|
if (result == 1) {
|
|
|
|
|
std::ostringstream portString;
|
|
|
|
|
portString << port;
|
|
|
|
@ -2088,7 +2088,7 @@ namespace nodetool
|
|
|
|
|
char lanAddress[64];
|
|
|
|
|
result = UPNP_GetValidIGD(deviceList, &urls, &igdData, lanAddress, sizeof lanAddress);
|
|
|
|
|
freeUPNPDevlist(deviceList);
|
|
|
|
|
if (result != 0) {
|
|
|
|
|
if (result > 0) {
|
|
|
|
|
if (result == 1) {
|
|
|
|
|
std::ostringstream portString;
|
|
|
|
|
portString << port;
|
|
|
|
|