mirror of
https://github.com/Zakkaus/doona.git
synced 2026-12-06 00:00:57 +00:00
In dual-stack LANs one device showed up as separate IPv4 and IPv6 entries (daeuniverse/honk#446). honk is adding Connection.src_mac and a `mac` query to listing and closing connections; the vendored contract carries both ahead of that change, and the mock reports MAC addresses for its devices, one of them also over IPv6 and one without a MAC address. A device is now its MAC address when the backend knows it, otherwise its source address. The device ranking, the dashboard ranking widget and the connections grouped by device key on it, so one device's IPv4 and IPv6 traffic merge. An unnamed device keeps the address it showed before: its latest IPv4 address, else its first one. A MAC device links to and filters its connections with `?mac=`; a link in dash, dotted, bare or upper-case form reads as the colon form, one honk cannot read is still sent so its refusal shows, and a MAC address replaces any `src` in the same link, so bulk close never goes out wider than the list. The connection details show the source MAC address as a link that names the device. Names are kept in this browser only, re-read before each save and synced across tabs, and replace the address in the ranking, the groups and the device picker. Search matches the MAC address and its name. With no MAC addresses reported the pages render as before.