Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting "family:4" is required on some hardware #316

Open
Atheryl opened this issue May 27, 2024 · 0 comments
Open

Setting "family:4" is required on some hardware #316

Atheryl opened this issue May 27, 2024 · 0 comments

Comments

@Atheryl
Copy link

Atheryl commented May 27, 2024

Some hardware will pick IPV6 instead of IPV4 when setting a localAddress.

const opts = { host: host.replace(/^\[|\]$/g, ''), port, localAddress }; debug.proxyRequest('connecting to proxy target %o', opts); const target = net.connect(opts);

Should be

const opts = { host: host.replace(/^\[|\]$/g, ''), port, localAddress, family: {family (4 or 6)} }; debug.proxyRequest('connecting to proxy target %o', opts); const target = net.connect(opts);

I'll see to do a PR later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant