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

rpc: fix allow check for ::1 #2797

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

div72
Copy link
Member

@div72 div72 commented Mar 5, 2025

See curl --data '{"method": "getinfo"}' http://'[::1]':15715/ for before and after a91d529.

The ClientAllowed check broke in
4d91c8c as the is_v4_compatible
function was mistakenly refactored to include ::1 and ::. Since ::1
(a.k.a the IPv6 localhost) got considered to be an IPv4 compatible IPv6
address, it got treated as IPv4 0.0.0.1 which caused the wallet to
reject connections from localhost on some systems.
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