From 609d8aa03713844a62aadcc13b9905d1c9275c4e Mon Sep 17 00:00:00 2001 From: ValdikSS Date: Wed, 17 May 2017 22:02:22 +0300 Subject: [PATCH] New mode -3 (old -3 is now -4) --- README.md | 7 ++++--- goodbyedpi.c | 7 ++++++- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c383a350..8d77a7f7 100644 --- a/README.md +++ b/README.md @@ -21,14 +21,15 @@ Usage: goodbyedpi.exe [OPTION...] -1 enables all options, -f 2 -e 2 (most compatible mode, default) -2 enables all options, -f 2 -e 40 (better speed yet still compatible) - -3 all options except fragmentation (best speed) + -3 all options except HTTP fragmentation, -e 40 (even better speed) + -4 all options except fragmentation (best speed) ``` Try to run `goodbyedpi.exe` without any arguments first. If you can open blocked websites it means your ISP has DPI which can be circumvented. This is the slowest mode. -Then try `goodbyedpi.exe -2`. It should be faster for HTTPS sites. +Then try `goodbyedpi.exe -2`. It should be faster for HTTPS sites. Mode `-3` speed ups HTTP websites. -Use `goodbyedpi.exe -3` if it works for your ISP's DPI. This is the fastest mode but not compatible with every DPI. +Use `goodbyedpi.exe -4` if it works for your ISP's DPI. This is the fastest mode but not compatible with every DPI. # How does it work diff --git a/goodbyedpi.c b/goodbyedpi.c index e0477c0c..759b978d 100644 --- a/goodbyedpi.c +++ b/goodbyedpi.c @@ -126,6 +126,10 @@ int main(int argc, char *argv[]) { https_fragment_size = 40; break; case '3': + do_passivedpi = do_host = do_host_removespace \ + = do_fragment_https = 1; + https_fragment_size = 40; + case '4': do_passivedpi = do_host = do_host_removespace = 1; break; case 'p': @@ -163,7 +167,8 @@ int main(int argc, char *argv[]) { "\n" " -1 enables all options, -f 2 -e 2 (most compatible mode, default)\n" " -2 enables all options, -f 2 -e 40 (better speed yet still compatible)\n" - " -3 all options except fragmentation (best speed)\n"); + " -3 all options except HTTP fragmentation, -e 40 (even better speed)\n" + " -4 all options except fragmentation (best speed)\n"); exit(EXIT_FAILURE); } }