From 07a83aab5c3bb1e0ff848885ed501941594a7953 Mon Sep 17 00:00:00 2001 From: xvzc Date: Tue, 4 Jan 2022 00:30:15 +0900 Subject: [PATCH] refactor main.go --- cmd/spoof-dpi/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/spoof-dpi/main.go b/cmd/spoof-dpi/main.go index bed9394..e94689f 100644 --- a/cmd/spoof-dpi/main.go +++ b/cmd/spoof-dpi/main.go @@ -13,6 +13,7 @@ func main() { src := flag.String("src", "127.0.0.1:8080", "source-ip:source-port") dns := flag.String("dns", "8.8.8.8", "DNS server") debug := flag.Bool("debug", false, "true | false") + flag.Parse() err := config.InitConfig(*src, *dns, *debug)