mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-22 01:13:00 +02:00
avahi resolves mDNS hostname conflicts at runtime by appending -2, -3, … but the advertiser writes its adminurl TXT record with the configured hostname and never updates it. A device renamed infix-2.local thus keeps advertising adminurl=http://infix.local, so its card linked to the other device. Rebase the adminurl onto the actually-resolved host (keeping scheme, port, and path); a no-op in the common single-device case. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>