-
-
Notifications
You must be signed in to change notification settings - Fork 84
Description
Describe the bug
The ipv6 address formatting of the displayed ipv6 addresses on the status page is incorrect.
For example, the IP of my unit is formatted as "2a0d:9c42::9:0000:5acf:79ff:fe9c:8c5a". The DNS address is formatted as "2a0d:9c42::9:0000:0000:0000:0053:0001"
There are multiple issues here, but the one that creates an incorrect string is putting a double colon (::) when all eight hextets are displayed.
The other issues, which don't create a technically incorrect string, but doesn't follow the guidelines for formatting human-readable addresses, are:
- Not stripping leading zeroes
- Not (correctly) grouping consecutive zero-hextets into the double colon.
Speculating, I think the assigned IP address needs a hextet with leading zeroes to trigger the bug.
To Reproduce
Steps to reproduce the behavior:
- Enable IPv6 in the settings
- (Possibly assign an IP address with multiple leading zeroes in an otherwise non-zero hextet)
- Look at the formatted IPv6 addresses on the status page
Expected behavior
IPv6 address strings are at minimum valid, but should preferably follow guidelines for human-readable address formatting.
Hardware information:
- AMS reader: Pow-U+
Relevant firmware information:
- Version: 2.5.3
Additional context
Add any other context about the problem here.