From 32b24ce0930cbdb9b759f77f2c0773f3e61cb7b3 Mon Sep 17 00:00:00 2001 From: Artem Baskal Date: Tue, 20 Oct 2020 11:26:39 +0300 Subject: [PATCH] + dnsfilter, client: Add qq to blocked services Squashed commit of the following: commit ffb2a1065fc9edd2b840cccbb96a0a2c1334bf00 Merge: 0f966d5b 3acfaa16 Author: ArtemBaskal Date: Tue Oct 20 11:19:39 2020 +0300 Merge branch 'master' into dnsfilter/update_blocked_services commit 0f966d5b00f96c93bf778e944d68f62ebcdeaa50 Author: ArtemBaskal Date: Mon Oct 19 20:47:22 2020 +0300 Add qq icon to blocked services commit f9c42551bbb442f83c6354314fc42ea174aacf4b Author: ifurther <55025025+ifurther@users.noreply.github.com> Date: Sun Jun 7 12:19:05 2020 +0000 Add qq to blocked services --- client/src/components/ui/Icons.js | 10 ++++++++++ client/src/helpers/constants.js | 4 ++++ dnsfilter/blocked_services.go | 1 + 3 files changed, 15 insertions(+) diff --git a/client/src/components/ui/Icons.js b/client/src/components/ui/Icons.js index 3851ff01..ec5bf8a3 100644 --- a/client/src/components/ui/Icons.js +++ b/client/src/components/ui/Icons.js @@ -245,6 +245,16 @@ const Icons = () => ( d="M41 4H9C6.243 4 4 6.243 4 9v32c0 2.757 2.243 5 5 5h32c2.757 0 5-2.243 5-5V9c0-2.757-2.243-5-5-5zm-3.994 18.323a7.482 7.482 0 0 1-.69.035 7.492 7.492 0 0 1-6.269-3.388v11.537a8.527 8.527 0 1 1-8.527-8.527c.178 0 .352.016.527.027v4.202c-.175-.021-.347-.053-.527-.053a4.351 4.351 0 1 0 0 8.704c2.404 0 4.527-1.894 4.527-4.298l.042-19.594h4.016a7.488 7.488 0 0 0 6.901 6.685v4.67z" /> + + + + + + + + + + diff --git a/client/src/helpers/constants.js b/client/src/helpers/constants.js index 578d52a3..989a258b 100644 --- a/client/src/helpers/constants.js +++ b/client/src/helpers/constants.js @@ -279,6 +279,10 @@ export const SERVICES = [ id: 'tiktok', name: 'TikTok', }, + { + id: 'qq', + name: 'QQ', + }, ]; export const SERVICES_ID_NAME_MAP = SERVICES.reduce((acc, { id, name }) => { diff --git a/dnsfilter/blocked_services.go b/dnsfilter/blocked_services.go index 8cac102e..08990e0a 100644 --- a/dnsfilter/blocked_services.go +++ b/dnsfilter/blocked_services.go @@ -161,6 +161,7 @@ var serviceRulesArray = []svc{ "||douyin.com^", "||tiktokv.com^", }}, + {"qq", []string{"||qq.com^", "||qqzaixian.com^"}}, } // convert array to map