fix(PortProxy): Normalize IP addresses for port proxy to handle IPv4-mapped IPv6 addresses.
This commit is contained in:
@ -64,7 +64,7 @@ tap.test('setup port proxy test environment', async () => {
|
||||
toHost: 'localhost',
|
||||
domains: [],
|
||||
sniEnabled: false,
|
||||
defaultAllowedIPs: ['127.0.0.1', '::ffff:127.0.0.1']
|
||||
defaultAllowedIPs: ['127.0.0.1']
|
||||
});
|
||||
});
|
||||
|
||||
@ -86,7 +86,7 @@ tap.test('should forward TCP connections to custom host', async () => {
|
||||
toHost: '127.0.0.1',
|
||||
domains: [],
|
||||
sniEnabled: false,
|
||||
defaultAllowedIPs: ['127.0.0.1', '::ffff:127.0.0.1']
|
||||
defaultAllowedIPs: ['127.0.0.1']
|
||||
});
|
||||
|
||||
await customHostProxy.start();
|
||||
|
Reference in New Issue
Block a user