sysinfo: Add static and network intf providers

This commit is contained in:
Girish Ramakrishnan
2019-10-29 16:12:58 -07:00
parent 7d987d7c79
commit 813454ca82
3 changed files with 52 additions and 18 deletions
+15
View File
@@ -0,0 +1,15 @@
'use strict';
exports = module.exports = {
getServerIp: getServerIp
};
var assert = require('assert');
function getServerIp(config, callback) {
assert.strictEqual(typeof config, 'object');
assert.strictEqual(typeof callback, 'function');
callback(null, config.ip);
}