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.
17 lines
226 B
Go
17 lines
226 B
Go
4 years ago
|
package main
|
||
|
|
||
4 years ago
|
import (
|
||
|
"log"
|
||
|
|
||
4 years ago
|
"github.com/lqqyt2423/go-mitmproxy/proxy"
|
||
4 years ago
|
)
|
||
4 years ago
|
|
||
|
func main() {
|
||
4 years ago
|
log.SetFlags(log.LstdFlags | log.Lshortfile)
|
||
|
|
||
4 years ago
|
opts := &proxy.Options{
|
||
4 years ago
|
Addr: ":9080",
|
||
4 years ago
|
}
|
||
|
log.Fatal(proxy.NewProxy(opts).Start())
|
||
4 years ago
|
}
|