isLocalHostIpv4 matched interface family against the string IPv4 only. Some Node builds report family as the numeric 4 (Electron 41 / Node 22 reports the string, but the representation has varied across versions), which would make mirrored-mode detection silently miss and leave the renderer pointed at the distro IP instead of loopback. Normalize via String() and accept either form.