mirror of
https://github.com/xvzc/SpoofDPI.git
synced 2024-12-22 22:36:53 +00:00
23 lines
432 B
Go
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()
|
|
}
|