mirror of
https://github.com/bol-van/zapret.git
synced 2025-04-20 22:12:58 +03:00
https://github.com/freebsd/freebsd-src/blob/4da7282a1882/sys/netinet/ip_divert.c#L321 allows only AF_INET in sa, causing runtime issue with IPv6: [...] rawsend: sendto_divert: Address family not supported by protocol family [...] After hardcoding AF_INET in sa, sin_len check returns EINVAL: [...] rawsend: sendto_divert: Invalid argument [...] FreeBSD's div_output_outbound() past check still handles AF_INET6, and --dpi-desync=fake,split works after hardcoding sa AF and len to get past the check.