diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 4b000b1..6d757e2 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -56,69 +56,69 @@ jobs: GOOS: darwin GOARCH: amd64 run: | - go build -ldflags="-w -s" github.com/xvzc/SpoofDPI/cmd/spoof-dpi - tar -zcvf "spoof-dpi-$GOOS-$GOARCH.tar.gz" ./spoof-dpi && rm -rf ./spoof-dpi - gh release upload $TAG_NAME "./spoof-dpi-$GOOS-$GOARCH.tar.gz" + go build -ldflags="-w -s" github.com/xvzc/SpoofDPI/cmd/spoofdpi + tar -zcvf "spoofdpi-$GOOS-$GOARCH.tar.gz" ./spoofdpi && rm -rf ./spoofdpi + gh release upload $TAG_NAME "./spoofdpi-$GOOS-$GOARCH.tar.gz" - name: darwin/arm64 env: GOOS: darwin GOARCH: arm64 run: | - go build -ldflags="-w -s" github.com/xvzc/SpoofDPI/cmd/spoof-dpi - tar -zcvf "spoof-dpi-$GOOS-$GOARCH.tar.gz" ./spoof-dpi && rm -rf ./spoof-dpi - gh release upload $TAG_NAME "./spoof-dpi-$GOOS-$GOARCH.tar.gz" + go build -ldflags="-w -s" github.com/xvzc/SpoofDPI/cmd/spoofdpi + tar -zcvf "spoofdpi-$GOOS-$GOARCH.tar.gz" ./spoofdpi && rm -rf ./spoofdpi + gh release upload $TAG_NAME "./spoofdpi-$GOOS-$GOARCH.tar.gz" - name: linux/amd64 env: GOOS: linux GOARCH: amd64 run: | - go build -ldflags="-w -s" github.com/xvzc/SpoofDPI/cmd/spoof-dpi - tar -zcvf "spoof-dpi-$GOOS-$GOARCH.tar.gz" ./spoof-dpi && rm -rf ./spoof-dpi - gh release upload $TAG_NAME "./spoof-dpi-$GOOS-$GOARCH.tar.gz" + go build -ldflags="-w -s" github.com/xvzc/SpoofDPI/cmd/spoofdpi + tar -zcvf "spoofdpi-$GOOS-$GOARCH.tar.gz" ./spoofdpi && rm -rf ./spoofdpi + gh release upload $TAG_NAME "./spoofdpi-$GOOS-$GOARCH.tar.gz" - name: linux/arm env: GOOS: linux GOARCH: arm run: | - go build -ldflags="-w -s" github.com/xvzc/SpoofDPI/cmd/spoof-dpi - tar -zcvf "spoof-dpi-$GOOS-$GOARCH.tar.gz" ./spoof-dpi && rm -rf ./spoof-dpi - gh release upload $TAG_NAME "./spoof-dpi-$GOOS-$GOARCH.tar.gz" + go build -ldflags="-w -s" github.com/xvzc/SpoofDPI/cmd/spoofdpi + tar -zcvf "spoofdpi-$GOOS-$GOARCH.tar.gz" ./spoofdpi && rm -rf ./spoofdpi + gh release upload $TAG_NAME "./spoofdpi-$GOOS-$GOARCH.tar.gz" - name: linux/arm64 env: GOOS: linux GOARCH: arm64 run: | - go build -ldflags="-w -s" github.com/xvzc/SpoofDPI/cmd/spoof-dpi - tar -zcvf "spoof-dpi-$GOOS-$GOARCH.tar.gz" ./spoof-dpi && rm -rf ./spoof-dpi - gh release upload $TAG_NAME "./spoof-dpi-$GOOS-$GOARCH.tar.gz" + go build -ldflags="-w -s" github.com/xvzc/SpoofDPI/cmd/spoofdpi + tar -zcvf "spoofdpi-$GOOS-$GOARCH.tar.gz" ./spoofdpi && rm -rf ./spoofdpi + gh release upload $TAG_NAME "./spoofdpi-$GOOS-$GOARCH.tar.gz" - name: linux/mips env: GOOS: linux GOARCH: mips run: | - go build -ldflags="-w -s" github.com/xvzc/SpoofDPI/cmd/spoof-dpi - tar -zcvf "spoof-dpi-$GOOS-$GOARCH.tar.gz" ./spoof-dpi && rm -rf ./spoof-dpi - gh release upload $TAG_NAME "./spoof-dpi-$GOOS-$GOARCH.tar.gz" + go build -ldflags="-w -s" github.com/xvzc/SpoofDPI/cmd/spoofdpi + tar -zcvf "spoofdpi-$GOOS-$GOARCH.tar.gz" ./spoofdpi && rm -rf ./spoofdpi + gh release upload $TAG_NAME "./spoofdpi-$GOOS-$GOARCH.tar.gz" - name: linux/mipsle env: GOOS: linux GOARCH: mipsle run: | - go build -ldflags="-w -s" github.com/xvzc/SpoofDPI/cmd/spoof-dpi - tar -zcvf "spoof-dpi-$GOOS-$GOARCH.tar.gz" ./spoof-dpi && rm -rf ./spoof-dpi - gh release upload $TAG_NAME "./spoof-dpi-$GOOS-$GOARCH.tar.gz" + go build -ldflags="-w -s" github.com/xvzc/SpoofDPI/cmd/spoofdpi + tar -zcvf "spoofdpi-$GOOS-$GOARCH.tar.gz" ./spoofdpi && rm -rf ./spoofdpi + gh release upload $TAG_NAME "./spoofdpi-$GOOS-$GOARCH.tar.gz" - name: windows/amd64 env: GOOS: windows GOARCH: amd64 run: | - go build -ldflags="-w -s" -o "spoof-dpi-$GOOS-$GOARCH.exe" github.com/xvzc/SpoofDPI/cmd/spoof-dpi - gh release upload $TAG_NAME "./spoof-dpi-$GOOS-$GOARCH.exe" + go build -ldflags="-w -s" -o "spoofdpi-$GOOS-$GOARCH.exe" github.com/xvzc/SpoofDPI/cmd/spoofdpi + gh release upload $TAG_NAME "./spoofdpi-$GOOS-$GOARCH.exe" diff --git a/_docs/README_ja.md b/_docs/README_ja.md index 04c63b7..ff23872 100644 --- a/_docs/README_ja.md +++ b/_docs/README_ja.md @@ -13,7 +13,7 @@ See the installation guide for SpoofDPI [here](https://github.com/xvzc/SpoofDPI/ # 使用方法 ``` -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...] 設定 > 拡張機能に移動して無効にしてください。 ### OSX -`spoof-dpi`を実行すると、自動的にプロキシが設定されます。 +`spoofdpi`を実行すると、自動的にプロキシが設定されます。 ### Linux -`spoof-dpi`を実行し、プロキシオプションを使用してブラウザを開きます。 +`spoofdpi`を実行し、プロキシオプションを使用してブラウザを開きます。 ```bash google-chrome --proxy-server="http://127.0.0.1:8080" ``` diff --git a/_docs/README_ko.md b/_docs/README_ko.md index dbc04ba..161cab2 100644 --- a/_docs/README_ko.md +++ b/_docs/README_ko.md @@ -13,7 +13,7 @@ SpoofDPI의 설치과정은 [여기](https://github.com/xvzc/SpoofDPI/blob/main/ # 사용법 ``` -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; @@ -44,10 +44,10 @@ Usage: spoof-dpi [options...] > 만약 브라우저에서 Hotspot Shield와 같은 크롬 VPN 확장프로그램을 사용중이라면 Settings > Extension 으로 이동해 비활성화 해주시기바랍니다. ### OSX -터미널에서 `$ spoof-dpi`를 실행합니다. Proxy 설정은 자동으로 수행됩니다. +터미널에서 `$ spoofdpi`를 실행합니다. Proxy 설정은 자동으로 수행됩니다. ### Linux -터미널에서 `$ spoof-dpi`를 실행하고, 프록시 옵션과 함께 브라우저를 실행합니다. +터미널에서 `$ spoofdpi`를 실행하고, 프록시 옵션과 함께 브라우저를 실행합니다. `google-chrome --proxy-server="http://127.0.0.1:8080"` # 원리 diff --git a/_docs/README_ru.md b/_docs/README_ru.md index 05e68ec..8dfd268 100644 --- a/_docs/README_ru.md +++ b/_docs/README_ru.md @@ -13,7 +13,7 @@ See the installation guide for SpoofDPI [here](https://github.com/xvzc/SpoofDPI/ # Использование ``` -Usage: spoof-dpi [опции...] +Usage: spoofdpi [опции...] -addr string listen address (default "127.0.0.1") -banner @@ -34,7 +34,7 @@ Usage: spoof-dpi [опции...] 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 [опции...] Chrome, зайдите в Настройки > Расширения и отключите их. ### OSX -Пропишите `spoof-dpi` и прокси автоматически установится +Пропишите `spoofdpi` и прокси автоматически установится ### Linux -Пропишите `spoof-dpi` и откройте Chrome с параметром прокси +Пропишите `spoofdpi` и откройте Chrome с параметром прокси ```bash google-chrome --proxy-server="http://127.0.0.1:8080" ``` diff --git a/_docs/README_zh-cn.md b/_docs/README_zh-cn.md index 7b5d4a3..29aa86e 100644 --- a/_docs/README_zh-cn.md +++ b/_docs/README_zh-cn.md @@ -16,7 +16,7 @@ See the installation guide for SpoofDPI [here](https://github.com/xvzc/SpoofDPI/ # 使用方法 ``` -Usage: spoof-dpi [options...] +Usage: spoofdpi [options...] -addr string listen address (default "127.0.0.1") -banner @@ -37,7 +37,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; @@ -48,10 +48,10 @@ Usage: spoof-dpi [options...] > 如果你在 Chrome 浏览器使用其他 VPN 扩展比如 Hotspot Shield 请去 设置 > 扩展程序禁用它们 ### OSX -运行 `spoof-dpi` ,然后它会自动设置自身为代理 +运行 `spoofdpi` ,然后它会自动设置自身为代理 ### Linux -运行 `spoof-dpi` 然后加上代理参数运行你的浏览器 +运行 `spoofdpi` 然后加上代理参数运行你的浏览器 ```bash google-chrome --proxy-server="http://127.0.0.1:8080" ``` diff --git a/cmd/spoof-dpi/main.go b/cmd/spoofdpi/main.go similarity index 100% rename from cmd/spoof-dpi/main.go rename to cmd/spoofdpi/main.go