update README.md and help

This commit is contained in:
miladj 2024-02-11 11:02:24 +03:30
parent ef3a81f686
commit a74b0bfacf
2 changed files with 9 additions and 1 deletions

View File

@ -178,6 +178,7 @@ OPTION:
ha: High Availability mode ha: High Availability mode
lha: Latency based High Availability mode lha: Latency based High Availability mode
dh: Destination Hashing mode (default "rr") dh: Destination Hashing mode (default "rr")
wb: weight base
-tcpbufsize int -tcpbufsize int
tcp buffer size in Bytes (default 32768) tcp buffer size in Bytes (default 32768)
-udpbufsize int -udpbufsize int
@ -412,6 +413,9 @@ Examples:
glider -verbose -dns=:53 -dnsserver=8.8.8.8:53 -forward socks5://serverA:1080 -dnsrecord=abc.com/1.2.3.4 glider -verbose -dns=:53 -dnsserver=8.8.8.8:53 -forward socks5://serverA:1080 -dnsrecord=abc.com/1.2.3.4
-dns over proxy: listen on :53 as dns server, forward to 8.8.8.8:53 via socks5 server. -dns over proxy: listen on :53 as dns server, forward to 8.8.8.8:53 via socks5 server.
glider -listen :8443 -forward direct://#interface=eth0&weight=10 -forward direct://#interface=eth1&weight=5 -strategy wb
-multiple forwarders: listen on 8443 and forward requests via interface eth0 and eth1 in weight base mode.
``` ```
</details> </details>

View File

@ -56,7 +56,8 @@ func parseConfig() *Config {
flag.StringVar(&conf.Strategy.Strategy, "strategy", "rr", `rr: Round Robin mode flag.StringVar(&conf.Strategy.Strategy, "strategy", "rr", `rr: Round Robin mode
ha: High Availability mode ha: High Availability mode
lha: Latency based High Availability mode lha: Latency based High Availability mode
dh: Destination Hashing mode`) dh: Destination Hashing mode
wb: weight base`)
flag.StringVar(&conf.Strategy.Check, "check", "http://www.msftconnecttest.com/connecttest.txt#expect=200", flag.StringVar(&conf.Strategy.Check, "check", "http://www.msftconnecttest.com/connecttest.txt#expect=200",
`check=tcp[://HOST:PORT]: tcp port connect check `check=tcp[://HOST:PORT]: tcp port connect check
check=http://HOST[:PORT][/URI][#expect=REGEX_MATCH_IN_RESP_LINE] check=http://HOST[:PORT][/URI][#expect=REGEX_MATCH_IN_RESP_LINE]
@ -251,4 +252,7 @@ Examples:
glider -verbose -dns=:53 -dnsserver=8.8.8.8:53 -forward socks5://serverA:1080 -dnsrecord=abc.com/1.2.3.4 glider -verbose -dns=:53 -dnsserver=8.8.8.8:53 -forward socks5://serverA:1080 -dnsrecord=abc.com/1.2.3.4
-dns over proxy: listen on :53 as dns server, forward to 8.8.8.8:53 via socks5 server. -dns over proxy: listen on :53 as dns server, forward to 8.8.8.8:53 via socks5 server.
glider -listen :8443 -forward direct://#interface=eth0&weight=10 -forward direct://#interface=eth1&weight=5 -strategy wb
-multiple forwarders: listen on 8443 and forward requests via interface eth0 and eth1 in weight base mode.
` `