Skip to content

fix: use IPv4 callback host on Windows - #259

Open
todor-roi wants to merge 1 commit into
geelen:mainfrom
todor-roi:fix/windows-ipv4-oauth-callback-host
Open

fix: use IPv4 callback host on Windows#259
todor-roi wants to merge 1 commit into
geelen:mainfrom
todor-roi:fix/windows-ipv4-oauth-callback-host

Conversation

@todor-roi

Copy link
Copy Markdown

Summary

Make the default OAuth callback host use IPv4 loopback on Windows.

setupOAuthCallbackServerWithLongPoll() already binds the Express callback listener to 127.0.0.1. On Windows, localhost can resolve to IPv6 ::1 first, so a generated http://localhost:<port>/oauth/callback redirect can land on the wrong loopback stack and fail with ERR_CONNECTION_REFUSED even though Node is listening on IPv4.

This keeps the existing default on non-Windows platforms and preserves explicit --host overrides.

Verification

  • Not run locally: this machine does not have pnpm installed.

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

Successfully merging this pull request may close these issues.

1 participant