fix(PortProxy): Normalize IP addresses for port proxy to handle IPv4-mapped IPv6 addresses.

This commit is contained in:
2025-02-21 18:43:08 +00:00
parent 4bee483954
commit 5150ddc18e
4 changed files with 29 additions and 4 deletions

View File

@ -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();