google / google/cro3

default_ipv6_prefix takes any value, and produces non-compliant addresses

Open
#48 0 comments 0 reactions 1 assignee Claimed by @hikalium View on GitHub
P1
Dominant language
Rust
Stars
50
Forks
18
PR merge metrics
No merged PRs in 30d

Description

default_ipv6_prefix will take any value - and happily generates non-compliant IPv6 addresses.

A common mistake is for users to put in prefixes like:

"default_ipv6_prefix": "aabb:ccdd:1122:3344"

When the expectation is

"default_ipv6_prefix": "aabb:ccdd:1122:3344:"

emphasis on the last colon. There should be some handling for problematic input like this.

(Let's set aside the minor quirk that the address that comes out of the example is probably non-compliant too.)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.