"""Normalise Wi-Fi client addresses (strip IPv4-mapped IPv6 prefix)."""


def normalize_wifi_peer_ip(ip: str) -> str:
    s = str(ip).strip()
    if s.lower().startswith("::ffff:"):
        s = s[7:]
    return s
