TypeError: Cannot read property 'IPv4' of undefined
halfsmart opened this issue · comments
jorge 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