From 7b0a488dab62c7258d9a3bdc0d6a72b803d9c717 Mon Sep 17 00:00:00 2001 From: logikgate Date: Thu, 17 May 2018 13:25:29 -0400 Subject: [PATCH] Fix for Node 0.8 thru 0.10 --- lib/linux.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/linux.js b/lib/linux.js index fe16f79..799d7ac 100644 --- a/lib/linux.js +++ b/lib/linux.js @@ -1,7 +1,7 @@ var execFile = require('child_process').execFile; module.exports = function (iface, callback) { - execFile("cat", ["/sys/class/net/", iface, "/address"], function (err, out) { + execFile("cat", ["/sys/class/net/" + iface + "/address"], function (err, out) { if (err) { callback(err, null); return;