Skip to content

Commit

Permalink
v0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
eycorsican committed May 7, 2021
1 parent bea70ae commit 9afcc27
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 7 deletions.
29 changes: 23 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,33 @@ socks-port = 1080

[Proxy]
Direct = direct
Proxy = ss, 1.2.3.4, 8123, encrypt-method=aes-256-gcm, password=123456

[Rule]
IP-CIDR, 8.8.8.8/32, Proxy
DOMAIN-SUFFIX, google.com, Proxy
FINAL, Direct
```

More configuration examples can be found [here](/~https://github.com/eycorsican/leaf/blob/master/README.zh.md).

## TUN Mode and Gateway Mode

### TUN Mode

This syntax (`tun = auto`) is supported on macOS and Linux.

```ini
[General]
dns-server = 223.5.5.5
tun = auto

[Proxy]
Direct = direct
```

### Gateway Mode

Running in gateway mode requires a configuration with TUN mode enabled. Gateway mode can be enabled by an environment variable.

```sh
GATEWAY_MODE=true leaf -c config.conf
```

## Windows

* [Maple](/~https://github.com/YtFlow/Maple): A lightweight Universal Windows proxy app based on leaf
Expand Down
2 changes: 1 addition & 1 deletion leaf-bin/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "leaf-bin"
version = "0.3.0"
version = "0.3.1"
authors = ["eycorsican <eric.y.corsican@gmail.com>"]
edition = "2018"

Expand Down

0 comments on commit 9afcc27

Please sign in to comment.