Update readme
This commit is contained in:
parent
ade9a19315
commit
57e03a1e4c
2 changed files with 3 additions and 9 deletions
|
@ -29,11 +29,11 @@ My inspiration came from [this project](https://www.npmjs.com/package/wstunnel)
|
||||||
|
|
||||||
**What to expect:**
|
**What to expect:**
|
||||||
|
|
||||||
* Good error messages and debug informations
|
* Good error messages and debug information
|
||||||
* Static forward and reverse tunneling (TCP and UDP)
|
* Static forward and reverse tunneling (TCP and UDP)
|
||||||
* Dynamic tunneling (Socks5 proxy and Transparent Proxy)
|
* Dynamic tunneling (Socks5 proxy and Transparent Proxy)
|
||||||
* Support for http proxy (when behind one)
|
* Support for http proxy (when behind one)
|
||||||
* Support for tls/https server (with embedded self-signed certificate, see comment in the example section)
|
* Support for tls/https server with certificates auto-reload (with embedded self-signed certificate, or your own)
|
||||||
* Support IPv6
|
* Support IPv6
|
||||||
* **Standalone binaries** (so just cp it where you want) [here](https://github.com/erebe/wstunnel/releases)
|
* **Standalone binaries** (so just cp it where you want) [here](https://github.com/erebe/wstunnel/releases)
|
||||||
|
|
||||||
|
@ -329,7 +329,7 @@ Start wstunnel with
|
||||||
sudo wstunnel client -L 'tproxy+tcp://1080' -L 'tproxy+udp://1080' wss://my.server.com:443
|
sudo wstunnel client -L 'tproxy+tcp://1080' -L 'tproxy+udp://1080' wss://my.server.com:443
|
||||||
```
|
```
|
||||||
|
|
||||||
use this project to route traffic seamlessly https://github.com/NOBLES5E/cproxy. It works with any prgram
|
use this project to route traffic seamlessly https://github.com/NOBLES5E/cproxy. It works with any program
|
||||||
```
|
```
|
||||||
cproxy --port 1080 --mode tproxy -- curl https://google.com
|
cproxy --port 1080 --mode tproxy -- curl https://google.com
|
||||||
```
|
```
|
||||||
|
|
|
@ -196,12 +196,6 @@ pub async fn run_server(
|
||||||
bind: SocketAddr,
|
bind: SocketAddr,
|
||||||
timeout: Option<Duration>,
|
timeout: Option<Duration>,
|
||||||
) -> Result<impl Stream<Item = io::Result<Socks5UdpStream>>, anyhow::Error> {
|
) -> Result<impl Stream<Item = io::Result<Socks5UdpStream>>, anyhow::Error> {
|
||||||
info!(
|
|
||||||
"Starting SOCKS5 UDP server listening cnx on {} with cnx timeout of {}s",
|
|
||||||
bind,
|
|
||||||
timeout.unwrap_or(Duration::from_secs(0)).as_secs()
|
|
||||||
);
|
|
||||||
|
|
||||||
let listener = UdpSocket::bind(bind)
|
let listener = UdpSocket::bind(bind)
|
||||||
.await
|
.await
|
||||||
.with_context(|| format!("Cannot create UDP server {:?}", bind))?;
|
.with_context(|| format!("Cannot create UDP server {:?}", bind))?;
|
||||||
|
|
Loading…
Reference in a new issue