@@ -29,13 +29,18 @@ cp -R "$SOURCE_DIR/." "$TARGET_DIR/" || { echo "Copy failed" >> "$LOG"; exit 1;
2929# Create/Reset strategy config if not exists - write default working config
3030if [ ! -f " $TARGET_DIR /config_custom" ]; then
3131 cat > " $TARGET_DIR /config_custom" << 'CONFIGEOF '
32+ MODE_FILTER=autohostlist
3233TPWS_ENABLE=1
3334TPWS_SOCKS_ENABLE=1
3435TPWS_PORTS=80,443
3536INIT_APPLY_FW=1
36- DISABLE_IPV6=0
37+ DISABLE_IPV6=1
3738GZIP_LISTS=0
38- TPWS_OPT="--filter-tcp=80 --methodeol --hostlist=/opt/darkware-zapret/ipset/zapret-hosts.txt --hostlist-auto=/opt/darkware-zapret/ipset/zapret-hosts-auto.txt --hostlist-auto-fail-threshold=3 --hostlist-auto-fail-time=60 --hostlist-auto-retrans-threshold=3 --new --filter-tcp=443 --split-pos=1,midsld --disorder --hostlist=/opt/darkware-zapret/ipset/zapret-hosts.txt --hostlist-auto=/opt/darkware-zapret/ipset/zapret-hosts-auto.txt --hostlist-auto-fail-threshold=3 --hostlist-auto-fail-time=60 --hostlist-auto-retrans-threshold=3"
39+ GETLIST=get_refilter_domains.sh
40+ TPWS_OPT="
41+ --filter-tcp=80 --methodeol <HOSTLIST> --new
42+ --filter-tcp=443 --split-pos=1,midsld --disorder <HOSTLIST>
43+ "
3944CONFIGEOF
4045fi
4146chmod 666 " $TARGET_DIR /config_custom"
@@ -61,11 +66,11 @@ touch "$TARGET_DIR/ipset/zapret-hosts.txt"
6166# Make helper scripts executable
6267chmod +x " $TARGET_DIR /ipset/" * .sh
6368
64- # Try to download Antizapret list (disable gzip because tpws expects plain txt on macos usually, and easy_install disables it )
65- echo " Downloading Antizapret hostlist..."
69+ # Try to download Re-filter list (contains YouTube and other needed domains )
70+ echo " Downloading Re-filter hostlist..."
6671# Run in subshell to not change script cwd, ignore errors to not break install
67- (export GZIP_LISTS=0 && cd " $TARGET_DIR /ipset" && ./get_antizapret_domains .sh) || echo " Warning: Failed to download Antizapret list. Using empty list."
68- chmod 644 " $TARGET_DIR /ipset/" * .txt
72+ (export GZIP_LISTS=0 && cd " $TARGET_DIR /ipset" && ./get_refilter_domains .sh) || echo " Warning: Failed to download Re-filter list. Using empty list."
73+ chmod 644 " $TARGET_DIR /ipset/" * .txt
6974
7075# Add dummy entry if user list is empty (best practice from install_easy.sh)
7176if [ ! -s " $TARGET_DIR /ipset/zapret-hosts-user.txt" ]; then
0 commit comments