Commit Graph
341 Commits
Author SHA1 Message Date
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
vkill fa017bb6a0 Fix "inbound-http" feature (#323) 2022-12-02 21:55:28 +08:00
eric 606d9de99a chore: update cidr 2022-11-13 11:42:46 +08:00
eric ea468263ff test: fix 2022-11-11 01:02:30 +08:00
eric 86f80c153a ci: fix Windowns build 2022-11-11 00:49:24 +08:00
eric 77efdf94dc Upgrade rust-protobuf from v2 to v3 2022-11-11 00:26:56 +08:00
eric ad03738fb4 Limit memory consumption 2022-11-07 19:03:58 +08:00
eric 56b3464a07 Dispatch internal DNS queries 2022-09-18 22:27:55 +08:00
eric 792c59c2db chore: update netstack-lwip 2022-08-23 15:12:59 +08:00
eric b29117775c outbound/failover: skip health checking at inactivity 2022-08-23 15:12:14 +08:00
eric a72d81cfcc outbound/tls: refine error messages 2022-08-23 15:12:14 +08:00
今夕何夕 203faad981 use libc defined IPV6_BOUND_IF const instead 2022-08-23 14:36:30 +08:00
eric 914a0073c5 Refactor 2022-05-29 23:14:05 +08:00
eric 4b50bd107f outbound/failover: fix last resort outbound searching 2022-05-10 01:49:26 +08:00
eric 897ea054f0 v0.6.0 v0.6.0 2022-05-09 12:42:34 +08:00
eric 1232a4e2c9 chore: improve logging 2022-05-08 11:14:20 +08:00
eric 1743b0c764 outbound: fix outbound cache 2022-05-08 10:02:31 +08:00