Crates.io | tcp-proxy |
lib.rs | tcp-proxy |
version | 0.3.0 |
source | src |
created_at | 2023-02-04 10:42:36.965214 |
updated_at | 2023-02-08 13:37:09.160434 |
description | Simple TCP Proxy |
homepage | |
repository | |
max_upload_size | |
id | 776297 |
size | 14,270 |
fn main() {
let listen = "127.0.0.1:8080";
let upstream = "127.0.0.1:8081";
tcp_proxy::new(&listen, &upstream, log);
}
fn log(id: usize, ip: &str, listen: &str, upstream: &str) {
}
tcp-proxy 127.0.0.1:8080 127.0.0.1:8081
^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^
Listen Upstream