You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
278 B
Go

4 years ago
package main
import (
"log"
4 years ago
"github.com/lqqyt2423/go-mitmproxy/proxy"
)
4 years ago
func main() {
4 years ago
log.SetFlags(log.LstdFlags | log.Lshortfile)
opts := &proxy.Options{
4 years ago
Addr: ":9080",
}
p, err := proxy.NewProxy(opts)
if err != nil {
log.Fatal(err)
}
log.Fatal(p.Start())
4 years ago
}