Skip to content

Commit

Permalink
use legacy style fragmentation by default
Browse files Browse the repository at this point in the history
  • Loading branch information
xvzc committed Aug 3, 2024
1 parent db59946 commit d4f1e24
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion make-releases.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

VERSION="v0.10.3"
VERSION="v0.10.4"

for osarch in 'darwin/amd64' 'linux/amd64' 'linux/arm' 'linux/arm64' 'linux/mips' 'linux/mipsle'; do
GOOS=${osarch%/*} GOARCH=${osarch#*/} go build -ldflags="-w -s -X main.VERSION=${VERSION}" github.com/xvzc/SpoofDPI/cmd/spoof-dpi &&
Expand Down
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ Usage: spoof-dpi [options...]
-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;
set to 0 to use old (pre v0.10.0) client hello splitting method:
fragmentation for the first data packet and the rest (default 50)
when not given, the client hello packet will be sent in two parts:
fragmentation for the first data packet and the rest
```
> If you are using any vpn extensions such as Hotspot Shield in Chrome browser,
go to Settings > Extensions, and disable them.
Expand Down
4 changes: 2 additions & 2 deletions readme_ko.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ Usage: spoof-dpi [options...]
-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;
set to 0 to use old (pre v0.10.0) client hello splitting method:
fragmentation for the first data packet and the rest (default 50)
when not given, the client hello packet will be sent in two parts:
fragmentation for the first data packet and the rest
```
> 만약 브라우저에서 Hotspot Shield와 같은 크롬 VPN 확장프로그램을 사용중이라면
Settings > Extension 으로 이동해 비활성화 해주시기바랍니다.
Expand Down
4 changes: 2 additions & 2 deletions readme_ru.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ curl -fsSL https://raw.githubusercontent.com/xvzc/SpoofDPI/main/install.sh | bas
-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;
set to 0 to use old (pre v0.10.0) client hello splitting method:
fragmentation for the first data packet and the rest (default 50)
when not given, the client hello packet will be sent in two parts:
fragmentation for the first data packet and the rest
```
> Если Вы используете любые VPN-расширения по типу Hotspot Shield в браузере
Chrome, зайдите в Настройки > Расширения и отключите их.
Expand Down
4 changes: 2 additions & 2 deletions readme_zh-cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ Usage: spoof-dpi [options...]
-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;
set to 0 to use old (pre v0.10.0) client hello splitting method:
fragmentation for the first data packet and the rest (default 50)
when not given, the client hello packet will be sent in two parts:
fragmentation for the first data packet and the rest
```

> 如果你在 Chrome 浏览器使用其他 VPN 扩展比如 Hotspot Shield 请去 设置 > 扩展程序禁用它们
Expand Down
7 changes: 4 additions & 3 deletions util/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,11 @@ func ParseArgs() {
config.Debug = flag.Bool("debug", false, "enable debug output")
config.NoBanner = flag.Bool("no-banner", false, "disable banner")
config.Timeout = flag.Int("timeout", 0, "timeout in milliseconds. no timeout when not given")
config.WindowSize = flag.Int("window-size", 50, `chunk size, in number of bytes, for fragmented client hello,
config.WindowSize = flag.Int("window-size", 0, `chunk size, in number of bytes, for fragmented client hello,
try lower values if the default value doesn't bypass the DPI;
set to 0 to use old (pre v0.10.0) client hello splitting method:
fragmentation for the first data packet and the rest`)
when not given, the client hello packet will be sent in two parts:
fragmentation for the first data packet and the rest
`)
flag.Var(&allowedHosts, "url", "Bypass DPI only on this url, can be passed multiple times")
allowedPattern = flag.String(
"pattern",
Expand Down

0 comments on commit d4f1e24

Please sign in to comment.