123 Commits
Author SHA1 Message Date
eric 494f7ff35d v0.2.13 v0.2.13 2021-03-12 13:56:01 +08:00
eric f1fbff9d8a v0.2.12 v0.2.12 2021-03-11 10:52:14 +08:00
eric a964218e4f conf: support amux 2021-03-10 18:37:36 +08:00
eric 7aea2686af bin: 24k stack size is overstrict for complex outbound combinations 2021-03-09 19:55:18 +08:00
eric e37b5907d7 amux: refactor MuxConnection and ensure the buffers are pinned 2021-03-09 18:40:08 +08:00
eric fe2f23c4a5 bin: larger stack size for debugging 2021-03-08 09:09:53 +08:00
eric fdce9425e3 bin: smaller default thread stack size 2021-03-08 07:51:42 +08:00
eric 018d888ed7 amux: attempt to ease a mux stream reading issue 2021-03-08 06:56:51 +08:00
eric db4994e81e amux: refactor 2021-03-08 06:53:59 +08:00
eric 8b1268bd43 amux: a multiplexing transport 2021-03-07 16:57:52 +08:00
eric 2da69970c9 ci: pass strip flag via env variable 2021-03-06 10:13:57 +08:00
eric 5b1582f7e4 proxy: elementary support for multiplexing transports
This adds an `Incoming` transport to represent a `futures::stream::Stream`
of incoming transports from a multiplexing handler which accepts a single
stream as input and returns multiple streams as output.

A work in progress `amux` handler is also included.
2021-03-06 07:57:32 +08:00
Kid 67abf74ec4 Update tun to 0.5.1 (#76) 2021-03-06 07:06:27 +08:00
包布丁 c044cc94c2 Fix potential undefined behavior in tun inbound (#79) 2021-03-06 07:05:11 +08:00
eric 00b5c64bed outbound/redirect: fix up 2021-03-01 19:02:55 +08:00
eric aa3608e654 inbound/all: finish the chain UDP handler and refactor TCP handlers 2021-03-01 19:02:41 +08:00
eric 6bb851633d outbound/chain: refactor 2021-03-01 00:12:04 +08:00
eric 75d28684be tests: more integration tests 2021-02-26 23:24:41 +08:00
eric 6ef895a274 inbound/shadowsocks: new inbound 2021-02-26 23:01:01 +08:00
eric 1c02e4f9c0 tests: more integration tests 2021-02-25 23:03:57 +08:00
eric 6dfac961e8 outbound/socks: fix number of received bytes from a UDP socket 2021-02-25 19:47:57 +08:00
eric 833d3f30cb bin: custom stack size 2021-02-25 18:39:41 +08:00
eric b7aff64478 inbound/tun: fix overflow data handling 2021-02-25 14:14:46 +08:00
eric fc3cea4e67 bin: allow specifying the number of runtime worker threads 2021-02-25 14:13:44 +08:00
eric 034b7d8af3 v0.2.11 v0.2.11 2021-02-24 17:12:41 +08:00
eric d0255f7345 ci: add a missing target 2021-02-24 17:12:18 +08:00
eric 8791088a68 v0.2.10 v0.2.10 2021-02-24 16:53:37 +08:00
eric 775048f62f ci: fix workflow 2021-02-24 15:10:36 +08:00
eric da3cee9ff5 tests: added a simple integration test 2021-02-24 15:06:44 +08:00
eric 6f34a9790e dispatcher: perform domain snffing for appropriate links
For now we only do the sniffing for TCP links which the destination
address is an IP and the port is 443 or 80.
2021-02-23 20:07:44 +08:00
eric e01c34603d dispatcher: add some useful notes 2021-02-23 18:35:26 +08:00
eric ba274e6747 inbound/tun: fix a half-closed TCP connection issue
Fixes an edge case which TUN inbound fails to transfer the message
to outbound for such a connection, that a successful write followed
immediately by a close of the write side:

```rust
let mut stream = TcpStream::connect("1.2.3.4:1234").await.unwrap();
stream.write_all(b"abc").await.unwrap();
stream.shutdown(Shutdown::Write).unwrap();
```
2021-02-23 17:59:05 +08:00
eric 1bc6a99fc7 ws: support half close connections 2021-02-22 18:03:37 +08:00
eric 7f3dd8ddca conf: added ws-host parameter 2021-02-20 20:11:17 +08:00
eric 99680ab009 dns: support DNS static hosts 2021-02-20 19:44:05 +08:00
monnerHenster 2a3959630f Update README.zh.md (#62) 2021-02-20 13:10:55 +08:00
eric 23f8f070ee docs: added [On Demand] usage for iOS 2021-02-19 20:02:10 +08:00
eric 7549b20f08 ci: prefer musl builds 2021-02-18 17:43:21 +08:00
eric 0d7953f55b bin: re-organize features 2021-02-17 00:14:51 +08:00
eric 03353148e6 dispatcher: allow change of the buffer size of connection links 2021-02-16 17:23:31 +08:00
eric c12e8073d9 deps: uses hyper v0.13.9 2021-02-16 17:23:31 +08:00
eric 5bc0c4da40 v0.2.9 v0.2.9 2021-02-16 13:39:57 +08:00
eric 61ae2f5e9b inbound/tun: uses a branch of rust-tun with the endianness issue fixed 2021-02-16 13:37:08 +08:00
eric a79394937a docs: certificates should be installed when using TLS 2021-02-16 13:06:24 +08:00
eric 134b2a83a8 bin: shorthand for specifying outbound tag name 2021-02-16 10:28:54 +08:00
eric 8a7e0ce379 dispatcher: gracefully shuts down the inbound connection
Just try to reduce some error messages such as:

WebSocket protocol error: Connection reset without closing handshake
2021-02-16 10:09:54 +08:00
eric aaf761b167 option: allow options override from env vars 2021-02-15 20:23:38 +08:00
eric cff7a9b47e nat: waiting for available capacity instead of dropping downlink packets 2021-02-15 14:50:25 +08:00
eric 8154f5c2e1 refactor 2021-02-08 23:31:36 +08:00
eric f7646701ef outbound/ws: support custom headers 2021-02-08 22:54:21 +08:00