2 releases

0.1.1 Jun 7, 2022
0.1.0 May 27, 2022

#809 in HTTP server


Used in inn

MIT license

87KB
2K SLoC

inn-network - A network library for Inn

Report a Bug · Request a Feature . Ask a Question

Build and Test codecov License

Features

Supported

  • Socks5 protocol
  • Socks5 proxy server(Noauth or UserName/Password)
  • Http/Https proxy protocol.

Example

use actix::System;
use inn_network::{proxy::Proxy, NetWork};
#[actix_rt::main]
async fn main() {
    env_logger::init_from_env(env_logger::Env::new().default_filter_or("debug"));
    //
    let sock5 = async {
        let _ = NetWork.start("127.0.0.1", 4556, || {}).await;
    };
    let http_proxy = async {
        Proxy::start_proxy("127.0.0.1:4557", "ca/ca/cacert.pem", "ca/ca/cakey.pem").await;
    };
    tokio::join!(sock5, http_proxy);
    System::current().stop();
}

Contributing

First off, thanks for taking the time to contribute! Contributions are what makes the open-source community such an amazing place to learn, inspire, and create. Any contributions you make will benefit everybody else and are greatly appreciated.

Please try to create bug reports that are:

  • Reproducible. Include steps to reproduce the problem.
  • Specific. Include as much detail as possible: which version, what environment, etc.
  • Unique. Do not duplicate existing opened issues.
  • Scoped to a Single Bug. One bug per report.

License

Inn is licensed as MIT

Dependencies

~37–54MB
~1M SLoC