mirror of
https://github.com/fumiama/dnskip.git
synced 2026-06-17 18:00:26 +08:00
feat: add -d option
This commit is contained in:
5
main.go
5
main.go
@@ -36,10 +36,15 @@ var (
|
|||||||
func main() {
|
func main() {
|
||||||
iphost := flag.String("l", "127.0.0.1:5345", "listen DNS UDP port")
|
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")
|
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")
|
flag.BoolVar(&forcefb, "ffb", false, "force using fallback")
|
||||||
frag := flag.Uint("frag", 3, "TLS first fragemt size")
|
frag := flag.Uint("frag", 3, "TLS first fragemt size")
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
|
|
||||||
|
if *debug {
|
||||||
|
logrus.SetLevel(logrus.DebugLevel)
|
||||||
|
}
|
||||||
|
|
||||||
if frag != nil {
|
if frag != nil {
|
||||||
terasu.DefaultFirstFragmentLen = uint8(*frag)
|
terasu.DefaultFirstFragmentLen = uint8(*frag)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user