Skip to content

Работа с regex-custom #97

Answered by xtrime-ru
RazGame asked this question in Q&A
Discussion options

You must be logged in to vote

Вот парсер: https://github.com/xtrime-ru/antizapret-vpn-docker/blob/master/rootfs/root/antizapret/build_regex.sh

Он склеивает все строки в одну регулярку вида /(microsoft.[^.]$|windowsupdate.[^.]$|...)/

Т.е. формат у вас верный.

После того как отработает doall можно проверить правила так:

docker exec -it antizapret-vpn tail -n5  /etc/knot-resolver/knot-aliases-alt.conf

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by RazGame
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants