Accept IPv6 addresses in connectivity diagnostics
This commit is contained in:
@@ -253,7 +253,7 @@ test('a targeted network row reports provider, ASN and location through both for
|
||||
if (route === 'direct' && attempts.direct === 1) return response('{invalid');
|
||||
return response(JSON.stringify(route === 'vpn' ? {
|
||||
success: true,
|
||||
ip: '203.0.113.20',
|
||||
ip: '2a12:bec4:1bb0:10bb::2',
|
||||
city: 'Amsterdam',
|
||||
country_code: 'NL',
|
||||
connection: { asn: 9009, isp: 'M247 Europe' },
|
||||
@@ -278,6 +278,7 @@ test('a targeted network row reports provider, ASN and location through both for
|
||||
attempts: 3,
|
||||
error: null,
|
||||
});
|
||||
assert.equal(result.vpn.network.address, '2a12:bec4:1bb0:10bb::2');
|
||||
assert.equal(result.vpn.network.asn, 'AS9009');
|
||||
assert.equal(result.vpn.network.provider, 'M247 Europe');
|
||||
assert.ok(calls.every((args) => args.at(-1) === 'https://ipwho.is/' && args.includes('--ipv4')));
|
||||
|
||||
Reference in New Issue
Block a user