-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Fix IPv4 and IPv6 Regex #2285
Fix IPv4 and IPv6 Regex #2285
Conversation
@roman-khimov Please review. |
This should work given that we're fine with not supporting uppercasing and IPv4 embeddeding in IPv6 address. |
Maybe we can support uppercase and convert to lowercase when storing? |
It depends on what kind of interface users of this do expect. At the moment it tends to be "we store syntactically-checked strings for you", so changing anything in user-provided data seems to be incorrect. |
The convert should be done in a wallet/client. |
We can support uppercase, but the RFC says this:
|
That's because RFC 5952 talks about output format, that is when 128 bits of IPv6 get converted to human-readable text output. It at the same time says that "all implementations MUST accept and be able to handle any legitimate [RFC4291] format" for the input part. We're accepting an address here. |
Then, it's ok to me accept uppercase too. |
We should do it in wallet or client. |
Close #2283 close #2282