hyperlane-plugin-ip-filter 23.3.2

A zero-allocation IP allowlist/denylist and anti-spoofing client IP extraction plugin for the Hyperlane framework with /8 radix-indexed CIDR lookup, IPv4-mapped IPv6 canonicalization, RFC 7239 Forwarded/X-Forwarded-For right-to-left proxy peeling, and prebuilt 403 wire responses.
Documentation
mod ip_filter;

use super::*;

use std::{
    hint::black_box,
    io,
    net::TcpListener,
    str::{Utf8Error, from_utf8},
    time::{Duration, Instant},
};

use hyperlane::{
    Server, ServerConfig, ServerControlHook, ServerError, ServerProtocol,
    tokio::{
        self,
        io::{AsyncReadExt, AsyncWriteExt},
        net::TcpStream,
        time::{error::Elapsed, timeout},
    },
};