mirror of
https://github.com/xtaci/kcptun.git
synced 2024-04-21 12:32:32 +00:00
adjust param
This commit is contained in:
+3
-3
@@ -123,11 +123,11 @@ func main() {
|
||||
|
||||
switch c.String("mode") {
|
||||
case "normal":
|
||||
nodelay, interval, resend, nc = 0, 30, 2, 1
|
||||
nodelay, interval, resend, nc = 0, 30, 0, 1
|
||||
case "fast":
|
||||
nodelay, interval, resend, nc = 0, 20, 2, 1
|
||||
nodelay, interval, resend, nc = 0, 20, 0, 1
|
||||
case "fast2":
|
||||
nodelay, interval, resend, nc = 1, 20, 2, 1
|
||||
nodelay, interval, resend, nc = 1, 20, 0, 1
|
||||
case "fast3":
|
||||
nodelay, interval, resend, nc = 1, 10, 2, 1
|
||||
}
|
||||
|
||||
+3
-3
@@ -139,11 +139,11 @@ func main() {
|
||||
nodelay, interval, resend, nc := 0, 40, 0, 0
|
||||
switch c.String("mode") {
|
||||
case "normal":
|
||||
nodelay, interval, resend, nc = 0, 30, 2, 1
|
||||
nodelay, interval, resend, nc = 0, 30, 0, 1
|
||||
case "fast":
|
||||
nodelay, interval, resend, nc = 0, 20, 2, 1
|
||||
nodelay, interval, resend, nc = 0, 20, 0, 1
|
||||
case "fast2":
|
||||
nodelay, interval, resend, nc = 1, 20, 2, 1
|
||||
nodelay, interval, resend, nc = 1, 20, 0, 1
|
||||
case "fast3":
|
||||
nodelay, interval, resend, nc = 1, 10, 2, 1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user