sysinfo: add interface to get IPv6 address
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user