diff --git a/Makefile b/Makefile index c755939..05ddf0b 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,9 @@ CGO_ENABLED:=0 +NAME:=proxysocket debug: - CGO_ENABLED=$(CGO_ENABLED) go build -o proxysocket . + CGO_ENABLED=$(CGO_ENABLED) go build -o $(NAME) . .PHONY : all @@ -10,11 +11,11 @@ all: clean binary binary: @test -d bin || mkdir bin - CGO_ENABLED=$(CGO_ENABLED) GOOS="linux" go build -o bin/proxysocket-linux-amd64 . - CGO_ENABLED=$(CGO_ENABLED) GOOS="darwin" go build -o bin/proxysocket-darwin-amd64 . - CGO_ENABLED=$(CGO_ENABLED) GOOS="windows" go build -o bin/proxysocket-windows-amd64 . - CGO_ENABLED=$(CGO_ENABLED) GOOS="linux" GOARCH="arm64" go build -o bin/proxysocket-linux-aarch64 . + CGO_ENABLED=$(CGO_ENABLED) GOOS="linux" go build -o bin/$(NAME)-linux-amd64 . + CGO_ENABLED=$(CGO_ENABLED) GOOS="darwin" go build -o bin/$(NAME)-darwin-amd64 . + CGO_ENABLED=$(CGO_ENABLED) GOOS="windows" go build -o bin/$(NAME)-windows-amd64 . + CGO_ENABLED=$(CGO_ENABLED) GOOS="linux" GOARCH="arm64" go build -o bin/$(NAME)-linux-aarch64 . .PHONY : clean clean: - rm -f bin/proxysocket-* + rm -f $(NAME) bin/$(NAME)-* diff --git a/lib/proxychain.go b/lib/proxychain.go index eecf99f..568e741 100644 --- a/lib/proxychain.go +++ b/lib/proxychain.go @@ -17,7 +17,7 @@ type ProxyChainConn struct { IsClosed bool } -// Exchange on Connection or NoConnection +// Exchange on connection-orintend or connectionless // connection 1 : Client <-1-> ProxyServer // connection 2 : ProxyDailer <-2-> UpstreamService