SpoofDPI/cmd/spoof-dpi/main.go

23 lines
432 B
Go
Raw Normal View History

2021-12-28 02:28:43 +00:00
package main
import (
2021-12-29 17:08:30 +00:00
"flag"
"os"
2021-12-28 06:10:06 +00:00
2021-12-29 17:08:30 +00:00
"github.com/xvzc/SpoofDPI/proxy"
2021-12-28 02:28:43 +00:00
)
func main() {
2021-12-29 17:08:30 +00:00
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()
2021-12-28 02:28:43 +00:00
}