filtering: fmt

This commit is contained in:
Ainar Garipov 2022-08-18 14:51:28 +03:00
parent 7e80980ae4
commit e6ebb8efef
2 changed files with 64 additions and 24 deletions

View File

@ -20,11 +20,16 @@ and this project adheres to
- Weaker cipher suites that use the CBC (cipher block chaining) mode of - Weaker cipher suites that use the CBC (cipher block chaining) mode of
operation have been disabled ([#2993]). operation have been disabled ([#2993]).
### Added
- Bilibili service blocking ([#4795]).
### Deprecated ### Deprecated
- Go 1.18 support. v0.109.0 will require at least Go 1.19 to build. - Go 1.18 support. v0.109.0 will require at least Go 1.19 to build.
[#2993]: https://github.com/AdguardTeam/AdGuardHome/issues/2993 [#2993]: https://github.com/AdguardTeam/AdGuardHome/issues/2993
[#4795]: https://github.com/AdguardTeam/AdGuardHome/issues/4795

View File

@ -20,8 +20,11 @@ type svc struct {
// client/src/helpers/constants.js // client/src/helpers/constants.js
// client/src/components/ui/Icons.js // client/src/components/ui/Icons.js
var serviceRulesArray = []svc{{ var serviceRulesArray = []svc{{
name: "whatsapp", name: "whatsapp",
rules: []string{"||whatsapp.net^", "||whatsapp.com^"}, rules: []string{
"||whatsapp.com^",
"||whatsapp.net^",
},
}, { }, {
name: "facebook", name: "facebook",
rules: []string{ rules: []string{
@ -38,8 +41,13 @@ var serviceRulesArray = []svc{{
"||fb.watch^", "||fb.watch^",
}, },
}, { }, {
name: "twitter", name: "twitter",
rules: []string{"||twitter.com^", "||twttr.com^", "||t.co^", "||twimg.com^"}, rules: []string{
"||t.co^",
"||twimg.com^",
"||twitter.com^",
"||twttr.com^",
},
}, { }, {
name: "youtube", name: "youtube",
rules: []string{ rules: []string{
@ -53,8 +61,13 @@ var serviceRulesArray = []svc{{
"||ytimg.com^", "||ytimg.com^",
}, },
}, { }, {
name: "twitch", name: "twitch",
rules: []string{"||twitch.tv^", "||ttvnw.net^", "||jtvnw.net^", "||twitchcdn.net^"}, rules: []string{
"||jtvnw.net^",
"||ttvnw.net^",
"||twitch.tv^",
"||twitchcdn.net^",
},
}, { }, {
name: "netflix", name: "netflix",
rules: []string{ rules: []string{
@ -220,17 +233,28 @@ var serviceRulesArray = []svc{{
"||douyincdn.com^", "||douyincdn.com^",
}, },
}, { }, {
name: "vimeo", name: "vimeo",
rules: []string{"||vimeo.com^", "||vimeocdn.com^", "*vod-adaptive.akamaized.net^"}, rules: []string{
"*vod-adaptive.akamaized.net^",
"||vimeo.com^",
"||vimeocdn.com^",
},
}, { }, {
name: "pinterest", name: "pinterest",
rules: []string{"||pinterest.*^", "||pinimg.com^"}, rules: []string{
"||pinimg.com^",
"||pinterest.*^",
},
}, { }, {
name: "imgur", name: "imgur",
rules: []string{"||imgur.com^"}, rules: []string{"||imgur.com^"},
}, { }, {
name: "dailymotion", name: "dailymotion",
rules: []string{"||dailymotion.com^", "||dm-event.net^", "||dmcdn.net^"}, rules: []string{
"||dailymotion.com^",
"||dm-event.net^",
"||dmcdn.net^",
},
}, { }, {
name: "qq", name: "qq",
rules: []string{ rules: []string{
@ -244,23 +268,34 @@ var serviceRulesArray = []svc{{
name: "wechat", name: "wechat",
rules: []string{ rules: []string{
"||wechat.com^", "||wechat.com^",
"||wx.qq.com^",
"||weixin.qq.com^",
"||weixin.qq.com.cn^", "||weixin.qq.com.cn^",
"||weixin.qq.com^",
"||weixinbridge.com^", "||weixinbridge.com^",
"||wx.qq.com^",
}, },
}, { }, {
name: "viber", name: "viber",
rules: []string{"||viber.com^"}, rules: []string{"||viber.com^"},
}, { }, {
name: "weibo", name: "weibo",
rules: []string{"||weibo.com^", "||weibo.cn^", "||weibocdn.com^"}, rules: []string{
"||weibo.cn^",
"||weibo.com^",
"||weibocdn.com^",
},
}, { }, {
name: "9gag", name: "9gag",
rules: []string{"||9cache.com^", "||9gag.com^"}, rules: []string{
"||9cache.com^",
"||9gag.com^",
},
}, { }, {
name: "telegram", name: "telegram",
rules: []string{"||t.me^", "||telegram.me^", "||telegram.org^"}, rules: []string{
"||t.me^",
"||telegram.me^",
"||telegram.org^",
},
}, { }, {
name: "disneyplus", name: "disneyplus",
rules: []string{ rules: []string{
@ -297,11 +332,11 @@ var serviceRulesArray = []svc{{
}, { }, {
name: "bilibili", name: "bilibili",
rules: []string{ rules: []string{
"||bilibili.com^",
"||bilivideo.com^",
"||bilivideo.cn^",
"||biligame.com^",
"||biliapi.net^", "||biliapi.net^",
"||bilibili.com^",
"||biligame.com^",
"||bilivideo.cn^",
"||bilivideo.com^",
"||dreamcast.hk^", "||dreamcast.hk^",
"||hdslb.com^", "||hdslb.com^",
}, },