tursodatabase / libsql-client-ts

TypeScript/JavaScript client API for libSQL
https://docs.turso.tech/sdk/ts/quickstart
MIT License
289 stars 37 forks source link

Switch DNS resolution to prefer IPv4 in tests #151

Closed penberg closed 10 months ago

penberg commented 10 months ago

In the Cloudflare Workers local tests, Node seems to prefer resolving to IPv6, but the Wrangler server is only listening to IPv4, which results in "connection refused" errors. Fix the problem by forcing Node to prefer IPv4 for DNS resolution.