From 3b91e015f5a931d2caebd94f517a1f14d657a6d4 Mon Sep 17 00:00:00 2001 From: xvzc Date: Tue, 27 Aug 2024 12:17:35 +0900 Subject: [PATCH] chore: rename the name of binary to spoofdpi --- Dockerfile | 6 +++--- README.md | 8 ++++---- install.sh | 14 +++++++------- util/args.go | 2 +- version/version.go | 2 +- 5 files changed, 16 insertions(+), 16 deletions(-) diff --git a/Dockerfile b/Dockerfile index 39ad95a..058a5e4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,12 +2,12 @@ FROM golang:alpine as builder WORKDIR /go -RUN go install github.com/xvzc/SpoofDPI/cmd/spoof-dpi@latest +RUN go install github.com/xvzc/SpoofDPI/cmd/spoofdpi@latest FROM alpine:latest WORKDIR / -COPY --from=builder /go/bin/spoof-dpi . +COPY --from=builder /go/bin/spoofdpi . -ENTRYPOINT ["./spoof-dpi"] +ENTRYPOINT ["./spoofdpi"] diff --git a/README.md b/README.md index c6416b1..2b75bf8 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ See the installation guide for SpoofDPI [here](https://github.com/xvzc/SpoofDPI/ # Usage ``` -Usage: spoof-dpi [options...] +Usage: spoofdpi [options...] -addr string listen address (default "127.0.0.1") -banner @@ -34,7 +34,7 @@ Usage: spoof-dpi [options...] enable system-wide proxy (default true) -timeout int timeout in milliseconds; no timeout when not given - -v print spoof-dpi's version; this may contain some other relevant information + -v print spoofdpi's version; this may contain some other relevant information -window-size int chunk size, in number of bytes, for fragmented client hello, try lower values if the default value doesn't bypass the DPI; @@ -45,10 +45,10 @@ Usage: spoof-dpi [options...] go to Settings > Extensions, and disable them. ### OSX -Run `spoof-dpi` and it will automatically set your proxy +Run `spoofdpi` and it will automatically set your proxy ### Linux -Run `spoof-dpi` and open your favorite browser with proxy option +Run `spoofdpi` and open your favorite browser with proxy option ```bash google-chrome --proxy-server="http://127.0.0.1:8080" ``` diff --git a/install.sh b/install.sh index 8904f21..00c18e4 100644 --- a/install.sh +++ b/install.sh @@ -3,23 +3,23 @@ curl "https://api.github.com/repos/xvzc/SpoofDPI/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/' | - xargs -I {} curl -OL "https://github.com/xvzc/SpoofDPI/releases/download/"\{\}"/spoof-dpi-${1}.tar.gz" + xargs -I {} curl -OL "https://github.com/xvzc/SpoofDPI/releases/download/"\{\}"/spoofdpi-${1}.tar.gz" -mkdir -p ~/.spoof-dpi/bin +mkdir -p ~/.spoofdpi/bin -tar -xzvf ./spoof-dpi-${1}.tar.gz && \ - rm -rf ./spoof-dpi-${1}.tar.gz && \ - mv ./spoof-dpi ~/.spoof-dpi/bin +tar -xzvf ./spoofdpi-${1}.tar.gz && \ + rm -rf ./spoofdpi-${1}.tar.gz && \ + mv ./spoofdpi ~/.spoofdpi/bin if [ $? -ne 0 ]; then echo "Error. exiting now" exit fi -export PATH=$PATH:~/.spoof-dpi/bin +export PATH=$PATH:~/.spoofdpi/bin echo "" echo "Successfully installed SpoofDPI." echo "Please add the line below to your rcfile(.bashrc or .zshrc etc..)" echo "" -echo ">> export PATH=\$PATH:~/.spoof-dpi/bin" +echo ">> export PATH=\$PATH:~/.spoofdpi/bin" diff --git a/util/args.go b/util/args.go index f99beed..c7f35c7 100644 --- a/util/args.go +++ b/util/args.go @@ -48,7 +48,7 @@ try lower values if the default value doesn't bypass the DPI; when not given, the client hello packet will be sent in two parts: fragmentation for the first data packet and the rest `) - flag.BoolVar(&args.Version, "v", false, "print spoof-dpi's version; this may contain some other relevant information") + flag.BoolVar(&args.Version, "v", false, "print spoofdpi's version; this may contain some other relevant information") flag.Var( &args.AllowedPattern, "pattern", diff --git a/version/version.go b/version/version.go index ff4e5f6..52cebe5 100644 --- a/version/version.go +++ b/version/version.go @@ -6,7 +6,7 @@ import _ "embed" var VERSION string func PrintVersion() { - println("spoof-dpi", "v" + VERSION) + println("spoofdpi", "v" + VERSION) println("A simple and fast anti-censorship tool written in Go.") println("https://github.com/xvzc/SpoofDPI") }