SpoofDPI/cmd/spoof-dpi/main.go
2021-12-30 02:08:30 +09:00

23 lines
432 B
Go

package main
import (
"flag"
"os"
"github.com/xvzc/SpoofDPI/proxy"
)
func main() {
src := flag.String("src", "localhost:8080", "source-ip:source-port")
dns := flag.String("dns", "8.8.8.8", "DNS server")
debug := flag.Bool("debug", false, "true | false")
mtu := flag.Int("mtu", 100, "int")
err := proxy.InitConfig(*src, *dns, *mtu, *debug)
if err != nil {
os.Exit(1)
}
proxy.Start()
}