Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
zephyrchien committed Nov 22, 2024
1 parent d5ce786 commit 80f02a6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
6 changes: 4 additions & 2 deletions examples/full.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
],
"balance": "roundrobin: 4, 2, 1",
"through": "0.0.0.0",
"interface": "lo"
"interface": "lo",
"listen_interface": "lo"
},
{
"listen": "0.0.0.0:10000",
Expand All @@ -47,7 +48,8 @@
],
"balance": "roundrobin: 2, 1",
"through": "0.0.0.0",
"interface": "wlan0"
"interface": "wlan0",
"listen_interface": "lo"
}
]
}
2 changes: 2 additions & 0 deletions examples/full.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ extra_remotes = ["1.1.1.2:443", "1.1.1.3:443"]
balance = "roundrobin: 4, 2, 1"
through = "0.0.0.0"
interface = "lo"
listen_interface = "lo"

[[endpoints]]
listen = "0.0.0.0:10000"
Expand All @@ -38,3 +39,4 @@ extra_remotes = ["www.youtube.com:443"]
balance = "roundrobin: 2, 1"
through = "0.0.0.0"
interface = "wlan0"
listen_interface = "lo"
9 changes: 7 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ remote = "www.google.com:443"
{
"log": {
"level": "warn",
"output": "/var/log/realm.log"
"output": "realm.log"
},
"network": {
"no_tcp": false,
Expand Down Expand Up @@ -283,6 +283,7 @@ remote = "www.google.com:443"
├── balance
├── through
├── interface
├── listen_interface
├── listen_transport
├── remote_transport
└── network->
Expand Down Expand Up @@ -357,7 +358,11 @@ Supported formats:

#### endpoint.interface: string

Bind to a specific interface.
Bind to a specific interface for outgoing traffics.

#### endpoint.listen_interface: string

Bind to a specific interface for incoming traffics.

#### endpoint.listen_transport: string

Expand Down

0 comments on commit 80f02a6

Please sign in to comment.