mirror of
https://github.com/xvzc/SpoofDPI.git
synced 2024-12-21 22:06:33 +00:00
chore: rename the name of binary to spoofdpi
This commit is contained in:
parent
7dc8408204
commit
3b91e015f5
@ -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"]
|
||||
|
@ -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"
|
||||
```
|
||||
|
14
install.sh
14
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"
|
||||
|
@ -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",
|
||||
|
@ -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")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user