Igor Pecovnik df935563cd motd/20-ip-info: align (LAN)/(WAN) labels across IPv4 + IPv6 rows
The IPv4 row used a 14-char prefix (` IPv4:` + 8 trailing spaces);
the IPv6 row used 15 (` IPv6:` + 9 trailing spaces). The extra
space on v6 was an attempt to make the v6 address column line up
with the v4 address column when v4 had a `(LAN)` label and v6
didn't (v6's LAN appendix had no label at all, just the bare
address). Worked when v4 had `(LAN)` and v6 had something — broke
the moment LAN got dropped against WAN by the dedup at lines
76-81 and only the `(WAN)` half remained.

Net visible bug (addresses are RFC 5737 / RFC 3849 examples):

   IPv4:        (WAN) 192.0.2.42
   IPv6:         (WAN) 2001:db8::42
                ^ shifted by one column

Fix:

  - Use the same 13-char prefix for both rows (IPv4: / IPv6: + 7
    padding, no trailing space).
  - Both `(LAN)` and `(WAN)` appendices start with a single
    leading space — the label always sits at the same column
    regardless of which (or both) are present.
  - Add a `(LAN)` label to v6 too; the asymmetry was the original
    reason the spacing was offset, and removing it lets v4 and v6
    structurally mirror each other.
  - Drop the trailing space the appendices used to carry — pure
    EOL whitespace, never visible.

Verified across all four cases (LAN+WAN / LAN only / WAN only /
nothing): `(LAN)` and `(WAN)` always align column-for-column on
both rows.
2026-05-01 20:22:34 +02:00
..
2025-03-15 10:29:56 +01:00
2018-05-27 10:17:03 +00:00
2019-05-23 21:30:24 +02:00
2018-05-03 09:00:16 +03:00
2017-09-10 04:19:35 -07:00
2026-01-31 11:33:29 -05:00
2022-07-25 11:39:11 +02:00
2021-06-10 11:27:51 +02:00