Skip to content

Commit c6fa589

Browse files
committed
support tunneling udp
1 parent a6da33b commit c6fa589

File tree

10 files changed

+648
-244
lines changed

10 files changed

+648
-244
lines changed

Cargo.lock

Lines changed: 18 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,14 @@ lazy_static = "1.4"
2828
async-trait = "0.1"
2929
byte-pool = { git = "https://github.com/neevek/byte-pool" }
3030
# rstun = { path = "../rstun" }
31-
rstun = { git = "https://github.com/neevek/rstun", branch = "dev" }
31+
rstun = { git = "https://github.com/neevek/rstun" }
3232
hyper = { version = "0.14", features = ["full"]}
3333
http = "0.2"
3434
http-body = "0.4"
3535
mime_guess = "2.0"
3636
monolithica = { git = "https://github.com/neevek/monolithica" }
3737
base64 = "0.22"
38+
dashmap = "6"
3839

3940
[dev-dependencies]
4041
jni = "0.19"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Examples
4848
4949
`omnip -a socks5://127.0.0.1:8000 -u http://192.168.50.50:9000`
5050
51-
omnip runs as a SOCKS5 proxy server, which forwards all the proxy requests to the upstream server specified with the `-u|--upstream` option, in this case it simply translates SOCKS5 proxy requests to HTTP proxy requests. the schemes of the upstream can be one of `http`, `socks5`, `socks4` and their QUIC counterparts `http+quic`, `http+socks5` and `http+socks4`.
51+
omnip runs as a SOCKS5 proxy server, which forwards all the proxy requests to the upstream server specified with the `-u|--upstream` option, in this case it simply translates SOCKS5 proxy requests to HTTP proxy requests. the schemes of the upstream can be one of `http`, `socks5`, `socks4` and their QUIC counterparts `http+quic`, `socks5+quic` and `socks4+quic`.
5252
5353
3. Running omnip as QUIC secured proxy server:
5454

src/bin/omnip.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ fn main() -> Result<()> {
4040
cipher: args.cipher,
4141
max_idle_timeout_ms: args.max_idle_timeout_ms,
4242
retry_interval_ms: args.retry_interval_ms,
43-
threads: args.threads,
43+
workers: args.threads,
4444
};
4545

4646
let mut server = Server::new(config, common_quic_config);
@@ -109,7 +109,7 @@ struct OmnipArgs {
109109
#[arg(short = 'a', long, required = true)]
110110
addr: String,
111111

112-
/// upstream which the proxy server will relay traffic to based on proxy rules,
112+
/// Upstream which the proxy server will relay traffic to based on proxy rules,
113113
/// [<http|socks5|socks4>://]ip:port for example: http://127.0.0.1:8000, http+quic://127.0.0.1:8000
114114
#[arg(short = 'u', long, default_value = "")]
115115
upstream: String,

0 commit comments

Comments
 (0)