From aa3a64ddbbe79ee4347306f96638595922f6de13 Mon Sep 17 00:00:00 2001 From: StressOzz <131419324+StressOzz@users.noreply.github.com> Date: Mon, 24 Nov 2025 18:51:34 +0500 Subject: [PATCH] Update Str1.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Добавил список исключений --- Str1.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Str1.sh b/Str1.sh index fcefbfc..0c5ec5b 100644 --- a/Str1.sh +++ b/Str1.sh @@ -37,6 +37,17 @@ cat <> /etc/config/zapret --dpi-desync-fake-quic=/opt/zapret/files/fake/quic_initial_www_google_com.bin ' EOF +# Проверка и перезапись файла исключений пользователей +echo -e "${GREEN}🔴 ${CYAN}Добавляем домены в исключения" +exclude_file="/opt/zapret/ipset/zapret-hosts-user-exclude.txt" +remote_url="https://raw.githubusercontent.com/StressOzz/Zapret-Manager/refs/heads/main/zapret-hosts-user-exclude.txt" +# Удаляем старый файл +rm -f "$exclude_file" +# Скачиваем новый файл на его место +if ! curl -fsSL "$remote_url" -o "$exclude_file"; then +echo -e "\n${RED}Не удалось загрузить список с GitHub!${NC}\n" +read -p "Нажмите Enter для выхода в главное меню..." dummy +fi # Редактируем /etc/hosts echo -e "${GREEN}🔴 ${CYAN}Редактируем ${NC}/etc/hosts" file="/etc/hosts"