Cursor chat connection failed with IPv6

If the main interface (the one initiates connection from) got a non-routable IPv6 address such as link local address, cursor chat will fail due to connection reset when trying to to connect to api2.cursor.sh

dns query to api2.cursor.sh returns both ipv6 and ipv4 address, somehow cursor prioritizes ipv6 connection and failed to catch the connection error without retrying ipv4 address, resulting in “Connection failed. If the problem persists, please check your internet connection or VPN”