- SSL/TLS certificates for interception are generated on the fly
- 性能优势
- Certificates logic compatible with [mitmproxy](https://mitmproxy.org/), saved at `~/.mitmproxy`. If you used mitmproxy before and installed certificates, then you can use this go-mitmproxy directly
- Golang 天生的性能优势
- Addon mechanism, you can add your functions easily, refer to [addon/addon.go](./addon/addon.go)
After the first startup, the SSL/TLS certificate will be automatically generated at `~/.mitmproxy/mitmproxy-ca-cert.pem`. You can refer to this link to install: [About Certificates](https://docs.mitmproxy.org/stable/concepts-certificates/).
### 自定义参数
### Help
```
```
go-mitmproxy --help
Usage of go-mitmproxy:
Usage of go-mitmproxy:
-addr string
-addr string
proxy listen addr (default ":9080")
proxy listen addr (default ":9080")
@ -46,15 +46,19 @@ Usage of go-mitmproxy:
dump filename
dump filename
-dump_level int
-dump_level int
dump level: 0 - header, 1 - header + body
dump level: 0 - header, 1 - header + body
-version
show version
-web_addr string
-web_addr string
web interface listen addr (default ":9081")
web interface listen addr (default ":9081")
```
```
## 作为包引入
## Usage as package
Refer to [cmd/go-mitmproxy/main.go](./cmd/go-mitmproxy/main.go), you can add your own addon by call `AddAddon` method.