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.

29 lines
413 B
Go

4 years ago
package main
import (
4 years ago
"os"
4 years ago
"github.com/lqqyt2423/go-mitmproxy/proxy"
4 years ago
log "github.com/sirupsen/logrus"
)
4 years ago
func main() {
4 years ago
log.SetLevel(log.InfoLevel)
log.SetReportCaller(false)
log.SetOutput(os.Stdout)
log.SetFormatter(&log.TextFormatter{
FullTimestamp: true,
})
4 years ago
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
}