Fix Anvil failing to resolve IPV6
Closed this issue · 3 comments
FuzzB0t commented
Here's a link to the thread mentioning this issue:
https://discord.com/channels/413890591840272394/1141991978985332776
Basically Anvil is failing to resolve IPV6 addresses and when being ran in certain CI envs it fails
noisekit commented
Correction: It is not anvil failing to resolve ipv6. It is cannon code that resolves server ip.
server.on('listening', () => {
const addrInfo = server.address() as { address: string; family: 'IPv4' | 'IPv6'; port: number };
resolve(`http://${addrInfo.family === 'IPv6' ? '[' + addrInfo.address + ']' : addrInfo.address}:${addrInfo.port}`);
});
noisekit commented
@mjlescano any reference to PR/commit?
noisekit commented
I have checked main branch and exact code is still there.
This is a blocker issue to use on CircleCI
in packages/cli/src/rpc.ts
server.on('listening', () => {
const addrInfo = server.address() as { address: string; family: 'IPv4' | 'IPv6'; port: number };
resolve(`http://${addrInfo.family === 'IPv6' ? '[' + addrInfo.address + ']' : addrInfo.address}:${addrInfo.port}`);
});