dispatch-proxy 0.2.4

A SOCKS proxy that balances traffic between network interfaces.
1
2
3
4
5
6
7
8
9
10
11
12
mod weighted_rr;

use std::net::{IpAddr, SocketAddr};

use eyre::Result;

pub use weighted_rr::{RawWeightedAddress, WeightedAddress, WeightedRoundRobinDispatcher};

#[async_trait::async_trait]
pub trait Dispatch {
    async fn dispatch(&self, remote_address: &SocketAddr) -> Result<IpAddr>;
}