Fixes to getServerIPv6()
This commit is contained in:
@@ -19,7 +19,9 @@ async function getServerIPv4(config) {
|
||||
async function getServerIPv6(config) {
|
||||
assert.strictEqual(typeof config, 'object');
|
||||
|
||||
return config.ipv6;
|
||||
if ('ipv6' in config) return config.ipv6;
|
||||
|
||||
throw new BoxError(BoxError.NETWORK_ERROR, 'No IPv6 configured');
|
||||
}
|
||||
|
||||
async function testConfig(config) {
|
||||
|
||||
Reference in New Issue
Block a user