diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-11-10 17:45:05 -0800 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-11-10 17:45:05 -0800 |
| commit | a13ba7102a1a66b627a5c717b2e0d5435f75c842 (patch) | |
| tree | ca8386a4812ff82762834b515c82d27bca046a56 /osdep/UPNPClient.cpp | |
| parent | 451b8aa7b293be0bdd62a0cc1c292bfe5b3de751 (diff) | |
| download | infinitytier-a13ba7102a1a66b627a5c717b2e0d5435f75c842.tar.gz infinitytier-a13ba7102a1a66b627a5c717b2e0d5435f75c842.zip | |
GitHub issue #242 -- crappy uPnP protocol demands infinite lease time or else
Diffstat (limited to 'osdep/UPNPClient.cpp')
| -rw-r--r-- | osdep/UPNPClient.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/osdep/UPNPClient.cpp b/osdep/UPNPClient.cpp index ceecb3a3..3193f507 100644 --- a/osdep/UPNPClient.cpp +++ b/osdep/UPNPClient.cpp @@ -115,7 +115,7 @@ public: Utils::snprintf(outport,sizeof(outport),"%u",tryPort); int mapResult = 0; - if ((mapResult = UPNP_AddPortMapping(urls.controlURL,data.first.servicetype,outport,inport,lanaddr,"ZeroTier","UDP",(const char *)0,ZT_UPNP_LEASE_DURATION)) == UPNPCOMMAND_SUCCESS) { + if ((mapResult = UPNP_AddPortMapping(urls.controlURL,data.first.servicetype,outport,inport,lanaddr,"ZeroTier","UDP",(const char *)0,"0")) == UPNPCOMMAND_SUCCESS) { #ifdef ZT_UPNP_TRACE fprintf(stderr,"UPNPClient: reserved external port: %s"ZT_EOL_S,outport); #endif |
