indutny/node-nat-upnp — pull request #7 by gordonwritescode (2014-10-12 20:46:25+00:00)
Title: add support for indefinite leases on port mapping

Some routers - namely mine - do not support temporary leases. So, after a bit of research into UPNP, I discovered that you can request an indefinite lease by supplying the value `ui4` as the `NewLeaseDuration` parameter - which I have no idea why or what that value even means.

So, now if you supply `Infinity` as the `ttl` value on `portMapping()`, you will request an indefinite lease.