Commit Graph
370 Commits
Author SHA1 Message Date
eric 43596fb3a6 build: add iOS simulator targets 2023-08-27 12:40:45 +08:00
eric b38aaca42b build: include QUIC outbound in FFI crate 2023-08-27 10:27:29 +08:00
eric 26f7543174 chore(deps): use feature resolver v2 2023-08-25 16:15:48 +08:00
eric 00e4b209ae chore: handle mutex errors 2023-08-08 14:52:13 +08:00
eric ffe97d913b inbound/tun: handle lwIP errors 2023-08-08 14:52:13 +08:00
eric 2cdcf42212 v0.9.3 v0.9.3 2023-06-17 20:29:52 +08:00
eric df960e88d9 ci: fix deps installation 2023-06-17 03:08:32 +08:00
eric 9ce32284fb v0.9.2 v0.9.2 2023-06-15 23:34:14 +08:00
eric fdd4fab348 outbound/failover: use the last resort outbound when all scheduled outbounds failed 2023-06-15 23:33:36 +08:00
eric fa72ab315e Fix deps 2023-06-02 09:26:54 +08:00
eric b5011c6b6b config/conf: use default ALPN http/1.1 for QUIC 2023-05-29 18:18:23 +08:00
eric da5c041c97 outbound/quic: fix host name resolving 2023-05-29 17:35:26 +08:00
eric 533dfae715 v0.9.1 v0.9.1 2023-05-28 13:26:23 +08:00
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