TooTallNate / node-nat-pmp

Node.js implementation of the NAT Port Mapping Protocol
132 stars 16 forks source link

TypeError: Cannot read property 'IPv4' of undefined #11

Open halfsmart opened 9 years ago

halfsmart commented 9 years ago

Hello,

I'm trying to run nat-pmp in armv7. and when I do the following.

var gateway = netroute.getGateway(); var client = new natpmp.Client(gateway);

I get errors below in node-netroute

def = info.IPv4.filter(function(route) { ^ TypeError: Cannot read property 'IPv4' of undefined

like this one: https://github.com/indutny/node-netroute/issues/6

When I don't know gateway address, Is there a way not using netroute?

I npm installed like this below

export npm_config_arch=arm export npm_config_nodedir=/home/build/node-v0.10.29
npm install --production

p.s. I used network instead of netroute https://www.npmjs.com/package/network