Skip to content

Commit

Permalink
update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
zephyrchien committed Mar 15, 2024
1 parent 1d06012 commit c717f4b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 2 additions & 3 deletions examples/balance.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@
"listen": "0.0.0.0:20000",
"remote": "127.0.0.1:30000",
"extra_remotes": [
"127.0.0.1:30001",
"127.0.0.1:30002"
"127.0.0.1:30001"
],
"balance": "iphash: 4, 2, 1"
"balance": "iphash: 2, 1"
}
]
}
5 changes: 4 additions & 1 deletion examples/full.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,15 @@
"network": {
"no_tcp": false,
"use_udp": true,
"ipv6_only": false,
"tcp_timeout": 5,
"udp_timeout": 30,
"send_proxy": true,
"send_proxy_version": 2,
"accept_proxy": true,
"accept_proxy_timeout": 5
"accept_proxy_timeout": 5,
"tcp_keepalive": 15,
"tcp_keepalive_probe": 3
},
"endpoints": [
{
Expand Down
3 changes: 3 additions & 0 deletions examples/full.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,15 @@ cache_size = 256
[network]
no_tcp = false
use_udp = true
ipv6_only = false
tcp_timeout = 5
udp_timeout = 30
send_proxy = true
send_proxy_version = 2
accept_proxy = true
accept_proxy_timeout = 5
tcp_keepalive = 15
tcp_keepalive_probe = 3

[[endpoints]]
listen = "0.0.0.0:5000"
Expand Down

0 comments on commit c717f4b

Please sign in to comment.