TooTallNate / node-nat-pmp

Node.js implementation of the NAT Port Mapping Protocol

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeError: Cannot read property 'IPv4' of undefined

halfsmart opened this issue · comments

commented

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:
indutny/node-netroute#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