checkip fix3

master
Cristiano Pires 2 years ago
parent aa422de511
commit f385d03d63

@ -20,8 +20,7 @@ const {Command} = require('../../lib.js')
{
for (const net of nets[name])
{
const familyV4Value = typeof net.family === 'string' ? 'IPv4' : 4
if (net.family === familyV4Value && !net.internal)
if (net.family === (typeof net.family === 'string' ? 'IPv4' : 4) && name=='wlp3s0')
{
if (!results[name]) results[name] = [];
results[name].push(net.address);

Loading…
Cancel
Save