indutny / node-nat-upnp

NAT port mapping via UPnP
147 stars 59 forks source link

Fix bug that is enabled property is always false #34

Closed graykick closed 6 years ago

graykick commented 6 years ago

enabled property of result of getMappings is always false. because, data.NewEnabled is string tpye. Therefore, when you use the === operator, you need to compare it with the string type, not the number.

indutny commented 6 years ago

Landed and released, thank you!