|
|
|
|
@ -3,4 +3,29 @@ pong www.baidu.com
|
|
|
|
|
pong www.baidu.com 443
|
|
|
|
|
pong www.baidu.com 443 -t 1
|
|
|
|
|
pong www.baidu.com 443 -t 1 -k udp
|
|
|
|
|
pong -a www.baidu.com -p 443 -k tcp -t 3
|
|
|
|
|
pong -a www.baidu.com -p 443 -k tcp -t 3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## build
|
|
|
|
|
cd /root
|
|
|
|
|
rm -rf pong
|
|
|
|
|
git clone https://sre:N7q5BcbQrjpEav_iRCKBta_pVyFhUE_V@git.sre.ink/sre/pong.git
|
|
|
|
|
cd pong
|
|
|
|
|
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on GOPROXY="https://goproxy.cn,direct" go build -v -a -o pong pong.go
|
|
|
|
|
rm -rf /usr/bin/pong
|
|
|
|
|
mv pong /usr/bin/
|
|
|
|
|
pong www.baidu.com
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## build for arm64
|
|
|
|
|
CGO_ENABLED=0 GOARM=7 GOOS=linux GOARCH=arm64 GO111MODULE=on GOPROXY="https://goproxy.cn,direct" go build -v -a -o mupload main.go
|
|
|
|
|
|
|
|
|
|
## build on cmd
|
|
|
|
|
set CGO_ENABLED=0
|
|
|
|
|
set GO111MODULE=on
|
|
|
|
|
set GOOS=linux
|
|
|
|
|
set GOARCH=amd64
|
|
|
|
|
set GOPROXY="https://goproxy.cn,direct"
|
|
|
|
|
go build -o wechat main.go
|