Commit Graph
357 Commits
Author SHA1 Message Date
eric 9a6f28c0bc Logs session end with total bytes transfered 2023-05-28 13:24:58 +08:00
eric 52f7a21939 v0.9.0 v0.9.0 2023-05-24 04:20:45 +08:00
eric b4b7da5d14 bugfix, outbound/failover: fail-timeout should cover the connect time 2023-05-24 04:09:24 +08:00
Trump Founder bd24848bc2 outbound/failover: catch more error to try next actor 2023-05-24 03:28:36 +08:00
Trump Founder 2f09e6896f inbound/http: handle one-line head 2023-05-10 17:06:05 +08:00
Trump Founder b7ce5d3382 inbound/http: ensure the host header field as the same as absolute uri 2023-05-09 15:37:39 +08:00
eric e3663a4c3f Enable http inbound feature 2023-05-07 18:35:47 +08:00
Trump Founder 9a5abfded9 inbound/http: fixed plain http request failure 2023-05-07 18:34:43 +08:00
zh-yjie 4b4338b59f ignore network number and broadcast IP address 2023-03-31 12:29:19 +08:00
eric 05df23b0d8 v0.8.2 v0.8.2 2023-03-31 07:31:49 +08:00
eric ed62306405 Fix release 2023-03-31 07:31:30 +08:00
eric 2281f18ecd v0.8.1 v0.8.1 2023-03-31 07:17:30 +08:00
eric 72002a1ad1 Fix workflow syntax error 2023-03-31 07:17:03 +08:00
eric 16bc04a33d v0.8.0 v0.8.0 2023-03-31 07:05:11 +08:00
eric be20a07391 Release Android and iOS/macOS libs from CI 2023-03-31 07:04:33 +08:00
eric 4e6117b376 Build Android and iOS/macOS libraries on CI 2023-03-31 06:56:22 +08:00
eric 1de877aeae outbound/tls: added an option to disable certificate verification 2023-03-30 07:14:43 +08:00
bdbai 442d684978 outbound/obfs: flush stream directly 2023-03-30 06:39:24 +08:00
bdbai 7d61235517 outbound/obfs: continue flush after req sent tls 2023-03-30 06:39:24 +08:00
bdbai adc06e2e82 outbound/tls: fix server name len be 2023-03-30 06:39:24 +08:00
bdbai 386f58ea97 outbound/obfs: continue flush after req sent 2023-03-30 06:39:24 +08:00
bdbai e305411b17 Add json config entry for obfs outbound 2023-03-30 06:39:24 +08:00
bdbai 8ad2ad1836 Add tls obfs outbound 2023-03-30 06:39:24 +08:00
bdbai 85cfa4ce69 Add http obfs outbound 2023-03-30 06:39:24 +08:00
eric a358f7ead4 inbound/cat: a new inbound makes leaf act as netcat
Running leaf with the following config:

```json
{
    "inbounds": [
        {
            "protocol": "cat",
            "settings": {
                "address": "1.1.1.1",
                "network": "tcp",
                "port": 80
            },
            "tag": "cat"
        }
    ],
    "log": {
        "level": "warn"
    },
    "outbounds": [
        {
            "protocol": "socks",
            "settings": {
                "address": "127.0.0.1",
                "port": 1080
            },
            "tag": "socks"
        }
    ]
}
```

is similar to the following `nc` command:

```shell
nc -X5 -x127.0.0.1:1080 1.1.1.1 80
```

Which establishes a TCP connection to 1.1.1.1:80 via a local SOCKS5
proxy. But leaf supports sending UDP over SOCKS5 as well as other
supported outbounds.
2023-03-29 12:22:18 +08:00
eric 2bedeee96c android: a note on protect socket usage 2023-03-23 19:07:31 +08:00
eric faa77edfc7 android: support socket protecting via JNI callback 2023-03-22 06:54:58 +08:00
eric 8e4d069052 log: added a few debugging logs 2023-03-22 05:08:13 +08:00
trumpfounder 1855c7f363 config/json: fix network rule for json config (#151) (#361) 2023-03-20 16:18:16 +08:00
eric f531fc2217 Refactor 2023-03-18 14:49:14 +08:00
vincentliu77 aaaddbd204 config/json: fix tun auto for json config (#358) 2023-03-18 05:32:31 +08:00
lemos a70d98db2b outbound/socks: add authentication support for socks (#356) 2023-03-18 05:31:49 +08:00
eric cd04919df8 v0.7.2 v0.7.2 2023-03-16 17:28:36 +08:00
eric e6d5fbc7c2 net: free inbound TCP sockets more aggressive 2023-03-16 17:27:18 +08:00
eric 048544da79 net: apply a default 60s handshake timeout to inbound TCP connections 2023-03-16 17:27:12 +08:00
eric c62bb3acfc net: close/drop TCP socket immediately on error 2023-03-16 17:27:04 +08:00
包布丁 c2baa31c2a Remove dependency on parking_lot (#353) 2023-03-06 23:01:19 +08:00
eric 2e17847b48 Update iOS build command 2023-03-04 12:53:12 +08:00
eric 29da512b89 logger: hot reload 2023-02-19 20:22:58 +08:00
eric cd009cc7f2 Turn off domain sniffing v0.7.1 2023-02-18 22:56:11 +08:00
vincentliu77 4aa7ecbc6d test: fix test_quic_trojan failure problem (#347) 2023-02-14 16:09:16 +08:00
eric 5fa702d4eb quic: configurable ALPN 2023-02-13 08:17:05 +08:00
vincentliu77 7b826e2987 quic: makes BBR the default congestion control algorithm (#345) 2023-02-13 06:44:12 +08:00
vincentliu77 f73587068c tls, quic: supports EC PRIVATE KEY format (#344)
* bump the version of rustls-pemfile to 1.0.2

* add ec_private_keys support for tls and quic inbound
2023-02-13 06:43:12 +08:00
Siyuan Ren 6d7c846418 outbound/quic: loads Mozilla's root certs if none provided (#338) 2023-02-13 06:41:35 +08:00
eric 07bc7d9419 v0.7.0 v0.7.0 2023-02-11 15:39:07 +08:00
eric 295a3cfece Use stable Rust version for release build 2023-02-11 15:39:07 +08:00
eric 61af327df4 Fix Android logging 2023-01-12 20:19:43 +08:00
eric a77a1e497a Avoid possible OOM panics on link buffer allocation 2023-01-12 20:18:39 +08:00
eric 600e8b2255 inbound/tun: avoid possible panics 2023-01-12 20:18:39 +08:00