|
|
@ -1,6 +1,6 @@ |
|
|
|
--- a/upnpcommands.c
|
|
|
|
+++ b/upnpcommands.c
|
|
|
|
@@ -367,7 +367,7 @@ UPNP_AddPortMapping(const char * control
|
|
|
|
@@ -370,7 +370,7 @@ UPNP_AddPortMapping(const char * control
|
|
|
|
AddPortMappingArgs[5].elt = "NewEnabled"; |
|
|
|
AddPortMappingArgs[5].val = "1"; |
|
|
|
AddPortMappingArgs[6].elt = "NewPortMappingDescription"; |
|
|
@ -8,4 +8,4 @@ |
|
|
|
+ AddPortMappingArgs[6].val = desc?desc:"miniupnpc";
|
|
|
|
AddPortMappingArgs[7].elt = "NewLeaseDuration"; |
|
|
|
AddPortMappingArgs[7].val = leaseDuration?leaseDuration:"0"; |
|
|
|
if(!(buffer = simpleUPnPcommand(-1, controlURL, servicetype, |
|
|
|
buffer = simpleUPnPcommand(-1, controlURL, servicetype, |