chore: rename the name of binary to spoofdpi

This commit is contained in:
xvzc 2024-08-27 12:17:35 +09:00
parent 7dc8408204
commit 3b91e015f5
5 changed files with 16 additions and 16 deletions

View File

@ -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"]

View File

@ -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"
```

View File

@ -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"

View File

@ -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",

View File

@ -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")
}