diff --git a/examples/full.json b/examples/full.json index b3dc68fc..4c61581b 100644 --- a/examples/full.json +++ b/examples/full.json @@ -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", @@ -47,7 +48,8 @@ ], "balance": "roundrobin: 2, 1", "through": "0.0.0.0", - "interface": "wlan0" + "interface": "wlan0", + "listen_interface": "lo" } ] } diff --git a/examples/full.toml b/examples/full.toml index 7d1a5c01..9fdc4052 100644 --- a/examples/full.toml +++ b/examples/full.toml @@ -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" @@ -38,3 +39,4 @@ extra_remotes = ["www.youtube.com:443"] balance = "roundrobin: 2, 1" through = "0.0.0.0" interface = "wlan0" +listen_interface = "lo" diff --git a/readme.md b/readme.md index b6318abc..c7fa3e6d 100644 --- a/readme.md +++ b/readme.md @@ -226,7 +226,7 @@ remote = "www.google.com:443" { "log": { "level": "warn", - "output": "/var/log/realm.log" + "output": "realm.log" }, "network": { "no_tcp": false, @@ -283,6 +283,7 @@ remote = "www.google.com:443" ├── balance ├── through ├── interface + ├── listen_interface ├── listen_transport ├── remote_transport └── network-> @@ -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