make ipv4 and ipv6 settings separate

This commit is contained in:
Girish Ramakrishnan
2022-02-15 12:31:55 -08:00
parent 0dbe8ee8f2
commit c6da8c8167
14 changed files with 102 additions and 68 deletions

View File

@@ -3,7 +3,8 @@
exports = module.exports = {
getServerIPv4,
getServerIPv6,
testConfig
testIPv4Config,
testIPv6Config
};
const assert = require('assert'),
@@ -62,7 +63,13 @@ async function getServerIPv6(config) {
return response.body.ip;
}
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;