Signed-off-by: arraykeys@gmail.com <arraykeys@gmail.com>
This commit is contained in:
@ -750,7 +750,7 @@ proxy的很多功能都支持kcp协议,凡是使用了kcp协议的功能都支
|
|||||||
--kcp-key="secrect" pre-shared secret between client and server
|
--kcp-key="secrect" pre-shared secret between client and server
|
||||||
--kcp-method="aes" encrypt/decrypt method, can be: aes, aes-128, aes-192, salsa20, blowfish,
|
--kcp-method="aes" encrypt/decrypt method, can be: aes, aes-128, aes-192, salsa20, blowfish,
|
||||||
twofish, cast5, 3des, tea, xtea, xor, sm4, none
|
twofish, cast5, 3des, tea, xtea, xor, sm4, none
|
||||||
--kcp-mode="secrect" profiles: fast3, fast2, fast, normal, manual
|
--kcp-mode="fast" profiles: fast3, fast2, fast, normal, manual
|
||||||
--kcp-mtu=1350 set maximum transmission unit for UDP packets
|
--kcp-mtu=1350 set maximum transmission unit for UDP packets
|
||||||
--kcp-sndwnd=1024 set send window size(num of packets)
|
--kcp-sndwnd=1024 set send window size(num of packets)
|
||||||
--kcp-rcvwnd=1024 set receive window size(num of packets)
|
--kcp-rcvwnd=1024 set receive window size(num of packets)
|
||||||
@ -766,6 +766,13 @@ proxy的很多功能都支持kcp协议,凡是使用了kcp协议的功能都支
|
|||||||
--kcp-sockbuf=4194304 be carefull!
|
--kcp-sockbuf=4194304 be carefull!
|
||||||
--kcp-keepalive=10 be carefull!
|
--kcp-keepalive=10 be carefull!
|
||||||
```
|
```
|
||||||
|
提示:
|
||||||
|
参数:--kcp-mode中的四种fast3, fast2, fast, normal模式,
|
||||||
|
相当于设置了下面四个参数:
|
||||||
|
normal:`--nodelay=0 --interval=40 --resend=2 --nc=1`
|
||||||
|
fast :`--nodelay=0 --interval=30 --resend=2 --nc=1`
|
||||||
|
fast2:`--nodelay=1 --interval=20 --resend=2 --nc=1`
|
||||||
|
fast3:`--nodelay=1 --interval=10 --resend=2 --nc=1`
|
||||||
|
|
||||||
### TODO
|
### TODO
|
||||||
- http,socks代理多个上级负载均衡?
|
- http,socks代理多个上级负载均衡?
|
||||||
|
|||||||
@ -53,8 +53,8 @@ func initConfig() (err error) {
|
|||||||
forever := app.Flag("forever", "run proxy in forever,fail and retry").Default("false").Bool()
|
forever := app.Flag("forever", "run proxy in forever,fail and retry").Default("false").Bool()
|
||||||
logfile := app.Flag("log", "log file path").Default("").String()
|
logfile := app.Flag("log", "log file path").Default("").String()
|
||||||
kcpArgs.Key = app.Flag("kcp-key", "pre-shared secret between client and server").Default("secrect").String()
|
kcpArgs.Key = app.Flag("kcp-key", "pre-shared secret between client and server").Default("secrect").String()
|
||||||
kcpArgs.Crypt = app.Flag("kcp-method", "encrypt/decrypt method, can be: aes, aes-128, aes-192, salsa20, blowfish, twofish, cast5, 3des, tea, xtea, xor, sm4, none").Default("aes").String()
|
kcpArgs.Crypt = app.Flag("kcp-method", "encrypt/decrypt method, can be: aes, aes-128, aes-192, salsa20, blowfish, twofish, cast5, 3des, tea, xtea, xor, sm4, none").Default("aes").Enum("aes", "aes-128", "aes-192", "salsa20", "blowfish", "twofish", "cast5", "3des", "tea", "xtea", "xor", "sm4", "none")
|
||||||
kcpArgs.Mode = app.Flag("kcp-mode", "profiles: fast3, fast2, fast, normal, manual").Default("fast").String()
|
kcpArgs.Mode = app.Flag("kcp-mode", "profiles: fast3, fast2, fast, normal, manual").Default("fast").Enum("fast3", "fast2", "fast", "normal", "manual")
|
||||||
kcpArgs.MTU = app.Flag("kcp-mtu", "set maximum transmission unit for UDP packets").Default("1350").Int()
|
kcpArgs.MTU = app.Flag("kcp-mtu", "set maximum transmission unit for UDP packets").Default("1350").Int()
|
||||||
kcpArgs.SndWnd = app.Flag("kcp-sndwnd", "set send window size(num of packets)").Default("1024").Int()
|
kcpArgs.SndWnd = app.Flag("kcp-sndwnd", "set send window size(num of packets)").Default("1024").Int()
|
||||||
kcpArgs.RcvWnd = app.Flag("kcp-rcvwnd", "set receive window size(num of packets)").Default("1024").Int()
|
kcpArgs.RcvWnd = app.Flag("kcp-rcvwnd", "set receive window size(num of packets)").Default("1024").Int()
|
||||||
|
|||||||
Reference in New Issue
Block a user