make ipv4 and ipv6 settings separate
This commit is contained in:
@@ -9,7 +9,8 @@
|
||||
exports = module.exports = {
|
||||
getServerIPv4,
|
||||
getServerIPv6,
|
||||
testConfig
|
||||
testIPv4Config,
|
||||
testIPv6Config
|
||||
};
|
||||
|
||||
const assert = require('assert'),
|
||||
@@ -27,7 +28,13 @@ async function getServerIPv6(config) {
|
||||
throw new BoxError(BoxError.NOT_IMPLEMENTED, 'getServerIPv6 is not implemented');
|
||||
}
|
||||
|
||||
async function testConfig(config) {
|
||||
async function testIPv4Config(config) {
|
||||
assert.strictEqual(typeof config, 'object');
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
async function testIPv6Config(config) {
|
||||
assert.strictEqual(typeof config, 'object');
|
||||
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user