1
0
mirror of https://github.com/fumiama/dnskip.git synced 2026-06-05 00:32:41 +08:00

feat: add -d option

This commit is contained in:
源文雨
2025-10-03 23:44:06 +08:00
parent c566f33c3c
commit aff52a4a34

View File

@@ -36,10 +36,15 @@ var (
func main() {
iphost := flag.String("l", "127.0.0.1:5345", "listen DNS UDP port")
fbsrv := flag.String("fb", "127.0.0.1:53", "fallback to DNS UDP port")
debug := flag.Bool("d", false, "show debuf log")
flag.BoolVar(&forcefb, "ffb", false, "force using fallback")
frag := flag.Uint("frag", 3, "TLS first fragemt size")
flag.Parse()
if *debug {
logrus.SetLevel(logrus.DebugLevel)
}
if frag != nil {
terasu.DefaultFirstFragmentLen = uint8(*frag)
}