This commit is contained in:
esrrhs committed 2019-10-26 20:45:58 +08:00
1 parent c90545eaf6
commit 15e53f1f52
3 files changed
+10 -1

No files matched your search

+5
View File
@@ -5,6 +5,7 @@ import (
"fmt"
"github.com/esrrhs/go-engine/src/loggo"
"github.com/esrrhs/pingtunnel"
"strconv"
)
var usage = `
@@ -70,6 +71,10 @@ func main() {
flag.Usage()
return
}
if *tcpmode_maxwin*10 > pingtunnel.FRAME_MAX_ID {
fmt.Println("set tcp win to big max = " + strconv.Itoa(pingtunnel.FRAME_MAX_ID/10))
return
}
loggo.Ini(loggo.Config{Level: loggo.LEVEL_DEBUG, Prefix: "pingtunnel", MaxDay: 3})
loggo.Info("start...")