sysinfo: add interface to get IPv6 address

This commit is contained in:
Girish Ramakrishnan
2022-01-05 18:07:36 -08:00
parent 235d18cbb1
commit bbf1a5af3d
13 changed files with 100 additions and 32 deletions

View File

@@ -7,17 +7,24 @@
// -------------------------------------------
exports = module.exports = {
getServerIp,
getServerIPv4,
getServerIPv6,
testConfig
};
var assert = require('assert'),
const assert = require('assert'),
BoxError = require('../boxerror.js');
async function getServerIp(config) {
async function getServerIPv4(config) {
assert.strictEqual(typeof config, 'object');
throw new BoxError(BoxError.NOT_IMPLEMENTED, 'testConfig is not implemented');
throw new BoxError(BoxError.NOT_IMPLEMENTED, 'getServerIPv4 is not implemented');
}
async function getServerIPv6(config) {
assert.strictEqual(typeof config, 'object');
throw new BoxError(BoxError.NOT_IMPLEMENTED, 'getServerIPv6 is not implemented');
}
async function testConfig(config) {