When an IPv6 address that doesn't map to an IPv4 address was checked against an IPv4 trusted proxy, we'd hit an exception because ip.ipv4_mapped was None. Fix this by verifying ipv4_mapped is not None Co-authored-by: me <me@me>