From 59605bccfb2ec0bd7dba7e754bb2f362c1d3a33c Mon Sep 17 00:00:00 2001 From: lqqyt2423 <974923609@qq.com> Date: Sun, 26 Sep 2021 17:00:48 +0800 Subject: [PATCH] mitmproxy => go-mitmproxy --- .gitignore | 2 ++ Makefile | 4 ++-- README.md | 2 +- cmd/{mitmproxy => go-mitmproxy}/main.go | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) rename cmd/{mitmproxy => go-mitmproxy}/main.go (98%) diff --git a/.gitignore b/.gitignore index 4c49bd7..f3500e7 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ .env +/go-mitmproxy +/dummycert diff --git a/Makefile b/Makefile index fa9348c..64d5020 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ all: mitmproxy .PHONY: mitmproxy mitmproxy: - go build -o mitmproxy cmd/mitmproxy/main.go + go build -o go-mitmproxy cmd/go-mitmproxy/main.go .PHONY: dummycert dummycert: @@ -10,7 +10,7 @@ dummycert: .PHONY: clean clean: - rm -f mitmproxy dummycert + rm -f go-mitmproxy dummycert .PHONY: test test: diff --git a/README.md b/README.md index 425deee..3fd9562 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ ## 安装 ``` -GO111MODULE=on go get -u github.com/lqqyt2423/go-mitmproxy/cmd/mitmproxy +GO111MODULE=on go get -u github.com/lqqyt2423/go-mitmproxy/cmd/go-mitmproxy ``` ## 命令行使用 diff --git a/cmd/mitmproxy/main.go b/cmd/go-mitmproxy/main.go similarity index 98% rename from cmd/mitmproxy/main.go rename to cmd/go-mitmproxy/main.go index 2798a9e..53b2cb7 100644 --- a/cmd/mitmproxy/main.go +++ b/cmd/go-mitmproxy/main.go @@ -10,7 +10,7 @@ import ( log "github.com/sirupsen/logrus" ) -const version = "0.0.4" +const version = "0.0.5" type Config struct { addr string