From 33b0ca421bd75b367cf53dd5adfa1f97283456ed Mon Sep 17 00:00:00 2001 From: Vadim Vetrov Date: Thu, 29 Aug 2024 12:21:34 +0300 Subject: [PATCH] Update default value of frag-sni-pos Related to #43 and probably other issues with some ISPs. Some providers throws RST on 2 bytes tcp, but no RST on 1 byte --- README.md | 2 +- args.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7eaa5d9..52c3c2c 100644 --- a/README.md +++ b/README.md @@ -167,7 +167,7 @@ Available flags: - `--frag-middle-sni={0|1}` With this options **youtubeUnblock** will split the packet in the middle of SNI data. Defaults to 1. -- `--frag-sni-pos=` With this option **youtubeUnblock** will split the packet at the position pos. Defaults to 2. +- `--frag-sni-pos=` With this option **youtubeUnblock** will split the packet at the position pos. Defaults to 1. - `--quic-drop` Drop all QUIC packets which goes to youtubeUnblock. Won't affect any other UDP packets. Suitable for some TVs. Note, that for this option to work you should also add proxy udp to youtubeUnblock in firewall. `connbytes` may also be used with udp. diff --git a/args.c b/args.c index ae9fd3b..69174b9 100644 --- a/args.c +++ b/args.c @@ -19,7 +19,7 @@ struct config_t config = { .fake_sni = 1, .fake_sni_seq_len = 1, .frag_middle_sni = 1, - .frag_sni_pos = 2, + .frag_sni_pos = 1, .use_ipv6 = 1, .fakeseq_offset = 10000, .mark = DEFAULT_RAWSOCKET_MARK,