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
eric
00ce9b83a4
session: simplify session creation
2021-02-07 23:01:23 +08:00
eric
f045e80ec3
nat: remove session upon dispatch failure
2021-02-07 22:07:55 +08:00
eric
8a55a92ccf
dispatcher: handle connection shutdown result
2021-02-07 04:28:39 +08:00
eric
4a084e872f
dispatcher: use semaphores for concurrent connection limiting
2021-02-07 03:45:36 +08:00
eric
36aed53e81
v0.2.8
v0.2.8
2021-02-06 07:37:14 +08:00
eric
919e069e9d
nat: avoid unwraps
2021-02-06 07:03:28 +08:00
eric
83e2c2e1d1
nat: avoid blocking current task while adding UDP sessions
2021-02-06 02:23:19 +08:00
eric
297bba8eca
bin: passthrough the version env variables while cross compiling
2021-02-05 22:45:18 +08:00
eric
269250f144
bin: include information of the latest commit in the version string
2021-02-05 21:35:30 +08:00
eric
0ac84b7f19
outbound/retry: added retry outbound
...
retry outbound allows multiple attempts on a list of outbounds.
2021-02-05 18:29:17 +08:00
eric
8f11501ae9
refactor: unifies outbound socket creation behavior for both TCP and UDP
2021-02-05 12:41:50 +08:00
eric
639a2a7740
bin: allow building multi-threaded binary by feature
2021-02-05 10:20:07 +08:00
eric
928ec6f0eb
fakedns: run fakedns in exclude mode by default
...
This means if there are not any include or exclude filters specified,
fakedns will run in exclude mode, and since the filter list is empty,
fakedns would generate fake IP for every domain.
Because the domain sniffing feature has recently removed, fakedns is
the only builtin method to fight against DNS spoofing.
2021-02-04 18:38:10 +08:00
eric
c599c798a3
refactor: remove unintended outbound handler implementations
2021-02-04 15:59:07 +08:00
eric
5b008cc811
refactor: upgrade protobuf, re-generate code
2021-02-04 15:34:17 +08:00
eric
632a4e3873
fakedns: make fake DNS fully compatible with "UDP connections"
2021-02-04 14:53:12 +08:00
eric
1ca14f7d65
dns: optimize DNS cache according to dial conditions
2021-02-03 03:41:33 +08:00
eric
87d52fb2e5
router: support port range matching
2021-02-03 00:50:34 +08:00
eric
3050cd720a
refactor: move some of the hard-coded settings to the option mod
2021-01-25 09:17:00 +08:00
eric
fb5d6799bd
docs: more on usage of the failover outbound
2021-01-12 18:16:25 +08:00
eric
173b8adde1
dep: not ready for tokio v1.0
2021-01-06 11:59:28 +08:00
eric
82545d4a8f
Refactor
2020-12-24 19:41:50 +08:00
eric
a0d954e80f
Update README
2020-12-20 13:52:17 +08:00
eric
b2cc4d32db
log: Logs inbound handler tag
2020-12-20 12:45:37 +08:00
eric
d52a49ec76
failover: Add the option to cache fallback actors
2020-12-19 09:54:01 +08:00
eric
7ed5fa5c7f
v0.2.7
v0.2.7
2020-12-19 07:13:43 +08:00
eric
14b11714e0
conf: Added always-fake-ip option
2020-12-19 05:08:43 +08:00
eric
df48f511fb
conf: Add Trojan over WebSocket over TLS (TLS + WebSockeet + Trojan) support
2020-12-19 04:57:02 +08:00
eric
1acca315ae
Fix Fake DNS Include/Exclude
2020-12-18 13:52:48 +08:00
eric
807ad5ab5e
Added several inbounds
...
* Added WebSocket inbound
* Added trojan inbound
* Added chain inbound
Similar to the chain outbound, chain inbound can be used to chain
multiple inbounds. The Nginx/CDN (TLS) + WebSocket + trojan setup is tested.
There are also breaking changes to the JSON config format.
Fake DNS now can operate in either Include or Exclude mode.
SOCKS inbound settings no longer has the `bind` option, the local_addr of
the TCP socket is used as the UDP relay address.
2020-12-18 13:08:50 +08:00