docstring_tokens
stringlengths 18
16.9k
| code_tokens
stringlengths 75
1.81M
| html_url
stringlengths 74
116
| file_name
stringlengths 3
311
|
---|---|---|---|
keep add keep keep keep keep keep keep
|
<mask> golang.org/x/net v0.0.0-20190620200207-3b0461eec859 h1:R/3boaszxrf1GEUWTVDzSKVwLmSJpwZ1yqXm8j0v2QI=
<mask> golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
<mask> golang.org/x/net v0.0.0-20190923162816-aa69164e4478/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
<mask> golang.org/x/net v0.0.0-20191007182048-72f939374954/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
<mask> golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
<mask> golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
<mask> golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e h1:3G+cUijn7XD+S4eJFddp53Pv7+slrESplyjG25HgL+k=
<mask> golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
</s> Pull request: all: update backend tools and dependencies
Merge in DNS/adguard-home from 2275-update-tools to master
Squashed commit of the following:
commit 4de1cf91dc7accabeb2103d3c8ec424bee2a89ce
Merge: 06b302c62 62a8fe0b7
Author: Ainar Garipov <[email protected]>
Date: Thu Nov 19 16:22:30 2020 +0300
Merge branch 'master' into 2275-update-tools
commit 06b302c62958aa8ab4a9da423a32cd71037d58d7
Author: Ainar Garipov <[email protected]>
Date: Fri Nov 13 11:29:19 2020 +0300
all: update backend tools and dependencies </s> add golang.org/x/net v0.0.0-20191007182048-72f939374954/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= </s> add golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/net v0.0.0-20190522155817-f3200d17e092/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= </s> add golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20181201002055-351d144fa1fc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= </s> add golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= </s> add golang.org/x/net v0.0.0-20200904194848-62affa334b73/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
golang.org/x/net v0.0.0-20201010224723-4f7140c49acb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= </s> add golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
https://github.com/AdguardTeam/AdGuardHome/commit/642dcd647c0f753f7955499484a9ad01a4a36eca
|
go.sum
|
keep add keep keep keep keep keep keep
|
<mask> golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
<mask> golang.org/x/net v0.0.0-20190923162816-aa69164e4478/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
<mask> golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e h1:3G+cUijn7XD+S4eJFddp53Pv7+slrESplyjG25HgL+k=
<mask> golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
<mask> golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
<mask> golang.org/x/net v0.0.0-20200707034311-ab3426394381 h1:VXak5I6aEWmAXeQjA+QSZzlgNrpq9mjcfDemuexIKsU=
<mask> golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
<mask> golang.org/x/net v0.0.0-20200904194848-62affa334b73/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
</s> Pull request: all: update backend tools and dependencies
Merge in DNS/adguard-home from 2275-update-tools to master
Squashed commit of the following:
commit 4de1cf91dc7accabeb2103d3c8ec424bee2a89ce
Merge: 06b302c62 62a8fe0b7
Author: Ainar Garipov <[email protected]>
Date: Thu Nov 19 16:22:30 2020 +0300
Merge branch 'master' into 2275-update-tools
commit 06b302c62958aa8ab4a9da423a32cd71037d58d7
Author: Ainar Garipov <[email protected]>
Date: Fri Nov 13 11:29:19 2020 +0300
all: update backend tools and dependencies </s> add golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= </s> add golang.org/x/net v0.0.0-20200904194848-62affa334b73/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
golang.org/x/net v0.0.0-20201010224723-4f7140c49acb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= </s> add golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/net v0.0.0-20190522155817-f3200d17e092/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= </s> add golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20181201002055-351d144fa1fc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= </s> add golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= </s> add golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
https://github.com/AdguardTeam/AdGuardHome/commit/642dcd647c0f753f7955499484a9ad01a4a36eca
|
go.sum
|
keep add keep keep keep keep keep keep
|
<mask> golang.org/x/net v0.0.0-20200707034311-ab3426394381 h1:VXak5I6aEWmAXeQjA+QSZzlgNrpq9mjcfDemuexIKsU=
<mask> golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
<mask> golang.org/x/net v0.0.0-20201016165138-7b1cca2348c0/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
<mask> golang.org/x/net v0.0.0-20201110031124-69a78807bb2b h1:uwuIcX0g4Yl1NC5XAz37xsr2lTtcqevgzYNVt49waME=
<mask> golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
<mask> golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
<mask> golang.org/x/oauth2 v0.0.0-20181017192945-9dcd33a902f4/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
<mask> golang.org/x/oauth2 v0.0.0-20181203162652-d668ce993890/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
</s> Pull request: all: update backend tools and dependencies
Merge in DNS/adguard-home from 2275-update-tools to master
Squashed commit of the following:
commit 4de1cf91dc7accabeb2103d3c8ec424bee2a89ce
Merge: 06b302c62 62a8fe0b7
Author: Ainar Garipov <[email protected]>
Date: Thu Nov 19 16:22:30 2020 +0300
Merge branch 'master' into 2275-update-tools
commit 06b302c62958aa8ab4a9da423a32cd71037d58d7
Author: Ainar Garipov <[email protected]>
Date: Fri Nov 13 11:29:19 2020 +0300
all: update backend tools and dependencies </s> add golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= </s> add golang.org/x/net v0.0.0-20191007182048-72f939374954/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= </s> add golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20181201002055-351d144fa1fc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= </s> add golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/net v0.0.0-20190522155817-f3200d17e092/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= </s> add golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= </s> add golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
https://github.com/AdguardTeam/AdGuardHome/commit/642dcd647c0f753f7955499484a9ad01a4a36eca
|
go.sum
|
keep keep keep add keep keep keep keep keep keep
|
<mask> golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
<mask> golang.org/x/oauth2 v0.0.0-20181017192945-9dcd33a902f4/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
<mask> golang.org/x/oauth2 v0.0.0-20181203162652-d668ce993890/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
<mask> golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
<mask> golang.org/x/perf v0.0.0-20180704124530-6e6d33e29852/go.mod h1:JLpeXjPJfIyPr5TlbXLkXWLhP8nz10XfvxElABhCtcw=
<mask> golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
<mask> golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
<mask> golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
<mask> golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
<mask> golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
</s> Pull request: all: update backend tools and dependencies
Merge in DNS/adguard-home from 2275-update-tools to master
Squashed commit of the following:
commit 4de1cf91dc7accabeb2103d3c8ec424bee2a89ce
Merge: 06b302c62 62a8fe0b7
Author: Ainar Garipov <[email protected]>
Date: Thu Nov 19 16:22:30 2020 +0300
Merge branch 'master' into 2275-update-tools
commit 06b302c62958aa8ab4a9da423a32cd71037d58d7
Author: Ainar Garipov <[email protected]>
Date: Fri Nov 13 11:29:19 2020 +0300
all: update backend tools and dependencies </s> add golang.org/x/net v0.0.0-20200904194848-62affa334b73/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
golang.org/x/net v0.0.0-20201010224723-4f7140c49acb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= </s> add golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= </s> add golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= </s> remove golang.org/x/sys v0.0.0-20201109165425-215b40eba54c
</s> add golang.org/x/sys v0.0.0-20201119102817-f84b799fce68 </s> remove github.com/u-root/u-root v6.0.0+incompatible
go.etcd.io/bbolt v1.3.4
golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897
</s> add github.com/u-root/u-root v7.0.0+incompatible
go.etcd.io/bbolt v1.3.5
golang.org/x/crypto v0.0.0-20201117144127-c1f2f97bffc9 </s> remove pinger.Run()
</s> add err = pinger.Run()
if err != nil {
log.Error("pinger.Run(): %v", err)
return true
}
|
https://github.com/AdguardTeam/AdGuardHome/commit/642dcd647c0f753f7955499484a9ad01a4a36eca
|
go.sum
|
keep add keep keep keep keep keep
|
<mask> golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9 h1:SQFwaSi55rU7vdNs9Yr0Z324VNlrF+0wMqRXT4St8ck=
<mask> golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
<mask> golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
<mask> golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
<mask> golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
<mask> golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
<mask> golang.org/x/sys v0.0.0-20181029174526-d69651ed3497/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
</s> Pull request: all: update backend tools and dependencies
Merge in DNS/adguard-home from 2275-update-tools to master
Squashed commit of the following:
commit 4de1cf91dc7accabeb2103d3c8ec424bee2a89ce
Merge: 06b302c62 62a8fe0b7
Author: Ainar Garipov <[email protected]>
Date: Thu Nov 19 16:22:30 2020 +0300
Merge branch 'master' into 2275-update-tools
commit 06b302c62958aa8ab4a9da423a32cd71037d58d7
Author: Ainar Garipov <[email protected]>
Date: Fri Nov 13 11:29:19 2020 +0300
all: update backend tools and dependencies </s> add golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= </s> add golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= </s> add golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= </s> add golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= </s> remove golang.org/x/sys v0.0.0-20201109165425-215b40eba54c
</s> add golang.org/x/sys v0.0.0-20201119102817-f84b799fce68 </s> add golang.org/x/sys v0.0.0-20191008105621-543471e840be/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
https://github.com/AdguardTeam/AdGuardHome/commit/642dcd647c0f753f7955499484a9ad01a4a36eca
|
go.sum
|
keep keep keep add keep keep keep keep keep keep
|
<mask> golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9 h1:SQFwaSi55rU7vdNs9Yr0Z324VNlrF+0wMqRXT4St8ck=
<mask> golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
<mask> golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
<mask> golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
<mask> golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
<mask> golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
<mask> golang.org/x/sys v0.0.0-20181029174526-d69651ed3497/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
<mask> golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
<mask> golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
<mask> golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
</s> Pull request: all: update backend tools and dependencies
Merge in DNS/adguard-home from 2275-update-tools to master
Squashed commit of the following:
commit 4de1cf91dc7accabeb2103d3c8ec424bee2a89ce
Merge: 06b302c62 62a8fe0b7
Author: Ainar Garipov <[email protected]>
Date: Thu Nov 19 16:22:30 2020 +0300
Merge branch 'master' into 2275-update-tools
commit 06b302c62958aa8ab4a9da423a32cd71037d58d7
Author: Ainar Garipov <[email protected]>
Date: Fri Nov 13 11:29:19 2020 +0300
all: update backend tools and dependencies </s> add golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= </s> add golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= </s> add golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= </s> add golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= </s> add golang.org/x/sys v0.0.0-20191008105621-543471e840be/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= </s> add golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
https://github.com/AdguardTeam/AdGuardHome/commit/642dcd647c0f753f7955499484a9ad01a4a36eca
|
go.sum
|
keep keep keep add keep keep keep keep
|
<mask> golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
<mask> golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
<mask> golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
<mask> golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
<mask> golang.org/x/sys v0.0.0-20181029174526-d69651ed3497/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
<mask> golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
<mask> golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
<mask> golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
</s> Pull request: all: update backend tools and dependencies
Merge in DNS/adguard-home from 2275-update-tools to master
Squashed commit of the following:
commit 4de1cf91dc7accabeb2103d3c8ec424bee2a89ce
Merge: 06b302c62 62a8fe0b7
Author: Ainar Garipov <[email protected]>
Date: Thu Nov 19 16:22:30 2020 +0300
Merge branch 'master' into 2275-update-tools
commit 06b302c62958aa8ab4a9da423a32cd71037d58d7
Author: Ainar Garipov <[email protected]>
Date: Fri Nov 13 11:29:19 2020 +0300
all: update backend tools and dependencies </s> add golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= </s> add golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= </s> add golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= </s> add golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= </s> add golang.org/x/sys v0.0.0-20191008105621-543471e840be/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= </s> add golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
https://github.com/AdguardTeam/AdGuardHome/commit/642dcd647c0f753f7955499484a9ad01a4a36eca
|
go.sum
|
keep add keep keep keep keep keep keep
|
<mask> golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
<mask> golang.org/x/sys v0.0.0-20181029174526-d69651ed3497/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
<mask> golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
<mask> golang.org/x/sys v0.0.0-20190204203706-41f3e6584952/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
<mask> golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
<mask> golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
<mask> golang.org/x/sys v0.0.0-20190316082340-a2f829d7f35f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
<mask> golang.org/x/sys v0.0.0-20190411185658-b44545bcd369/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
</s> Pull request: all: update backend tools and dependencies
Merge in DNS/adguard-home from 2275-update-tools to master
Squashed commit of the following:
commit 4de1cf91dc7accabeb2103d3c8ec424bee2a89ce
Merge: 06b302c62 62a8fe0b7
Author: Ainar Garipov <[email protected]>
Date: Thu Nov 19 16:22:30 2020 +0300
Merge branch 'master' into 2275-update-tools
commit 06b302c62958aa8ab4a9da423a32cd71037d58d7
Author: Ainar Garipov <[email protected]>
Date: Fri Nov 13 11:29:19 2020 +0300
all: update backend tools and dependencies </s> add golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= </s> add golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= </s> add golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= </s> add golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= </s> add golang.org/x/sys v0.0.0-20190411185658-b44545bcd369/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= </s> add golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
https://github.com/AdguardTeam/AdGuardHome/commit/642dcd647c0f753f7955499484a9ad01a4a36eca
|
go.sum
|
keep add keep keep keep keep keep
|
<mask> golang.org/x/sys v0.0.0-20190204203706-41f3e6584952/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
<mask> golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
<mask> golang.org/x/sys v0.0.0-20190316082340-a2f829d7f35f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
<mask> golang.org/x/sys v0.0.0-20190411185658-b44545bcd369/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
<mask> golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
<mask> golang.org/x/sys v0.0.0-20190418153312-f0ce4c0180be/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
<mask> golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
</s> Pull request: all: update backend tools and dependencies
Merge in DNS/adguard-home from 2275-update-tools to master
Squashed commit of the following:
commit 4de1cf91dc7accabeb2103d3c8ec424bee2a89ce
Merge: 06b302c62 62a8fe0b7
Author: Ainar Garipov <[email protected]>
Date: Thu Nov 19 16:22:30 2020 +0300
Merge branch 'master' into 2275-update-tools
commit 06b302c62958aa8ab4a9da423a32cd71037d58d7
Author: Ainar Garipov <[email protected]>
Date: Fri Nov 13 11:29:19 2020 +0300
all: update backend tools and dependencies </s> add golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= </s> add golang.org/x/sys v0.0.0-20190411185658-b44545bcd369/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= </s> add golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= </s> add golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= </s> add golang.org/x/sys v0.0.0-20191008105621-543471e840be/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= </s> add golang.org/x/sys v0.0.0-20201009025420-dfb3f7c4e634/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20201015000850-e3ed0017c211/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
https://github.com/AdguardTeam/AdGuardHome/commit/642dcd647c0f753f7955499484a9ad01a4a36eca
|
go.sum
|
keep add keep keep keep keep keep
|
<mask> golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
<mask> golang.org/x/sys v0.0.0-20190316082340-a2f829d7f35f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
<mask> golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
<mask> golang.org/x/sys v0.0.0-20190418153312-f0ce4c0180be/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
<mask> golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
<mask> golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
<mask> golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
</s> Pull request: all: update backend tools and dependencies
Merge in DNS/adguard-home from 2275-update-tools to master
Squashed commit of the following:
commit 4de1cf91dc7accabeb2103d3c8ec424bee2a89ce
Merge: 06b302c62 62a8fe0b7
Author: Ainar Garipov <[email protected]>
Date: Thu Nov 19 16:22:30 2020 +0300
Merge branch 'master' into 2275-update-tools
commit 06b302c62958aa8ab4a9da423a32cd71037d58d7
Author: Ainar Garipov <[email protected]>
Date: Fri Nov 13 11:29:19 2020 +0300
all: update backend tools and dependencies </s> add golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= </s> add golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= </s> add golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= </s> add golang.org/x/sys v0.0.0-20191008105621-543471e840be/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= </s> add golang.org/x/sys v0.0.0-20201009025420-dfb3f7c4e634/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20201015000850-e3ed0017c211/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= </s> add golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
https://github.com/AdguardTeam/AdGuardHome/commit/642dcd647c0f753f7955499484a9ad01a4a36eca
|
go.sum
|
keep keep keep add keep keep keep keep keep
|
<mask> golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
<mask> golang.org/x/sys v0.0.0-20190418153312-f0ce4c0180be/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
<mask> golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
<mask> golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
<mask> golang.org/x/sys v0.0.0-20190515120540-06a5c4944438/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
<mask> golang.org/x/sys v0.0.0-20190606122018-79a91cf218c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
<mask> golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
<mask> golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
<mask> golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
</s> Pull request: all: update backend tools and dependencies
Merge in DNS/adguard-home from 2275-update-tools to master
Squashed commit of the following:
commit 4de1cf91dc7accabeb2103d3c8ec424bee2a89ce
Merge: 06b302c62 62a8fe0b7
Author: Ainar Garipov <[email protected]>
Date: Thu Nov 19 16:22:30 2020 +0300
Merge branch 'master' into 2275-update-tools
commit 06b302c62958aa8ab4a9da423a32cd71037d58d7
Author: Ainar Garipov <[email protected]>
Date: Fri Nov 13 11:29:19 2020 +0300
all: update backend tools and dependencies </s> add golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= </s> add golang.org/x/sys v0.0.0-20190411185658-b44545bcd369/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= </s> add golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= </s> add golang.org/x/sys v0.0.0-20191008105621-543471e840be/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= </s> add golang.org/x/sys v0.0.0-20201009025420-dfb3f7c4e634/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20201015000850-e3ed0017c211/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= </s> remove golang.org/x/sys v0.0.0-20201109165425-215b40eba54c h1:+B+zPA6081G5cEb2triOIJpcvSW4AYzmIyWAqMn2JAc=
golang.org/x/sys v0.0.0-20201109165425-215b40eba54c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
</s> add golang.org/x/sys v0.0.0-20201101102859-da207088b7d1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20201112073958-5cba982894dd h1:5CtCZbICpIOFdgO940moixOPjc0178IU44m4EjOO5IY=
golang.org/x/sys v0.0.0-20201112073958-5cba982894dd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68 h1:nxC68pudNYkKU6jWhgrqdreuFiOQWj1Fs7T3VrH4Pjw=
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/term v0.0.0-20201117132131-f5c789dd3221 h1:/ZHdbVpdR/jk3g30/d4yUL0JU9kksj8+F/bnQUVLGDM=
golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw=
|
https://github.com/AdguardTeam/AdGuardHome/commit/642dcd647c0f753f7955499484a9ad01a4a36eca
|
go.sum
|
keep keep add keep keep keep keep keep keep
|
<mask> golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
<mask> golang.org/x/sys v0.0.0-20190515120540-06a5c4944438/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
<mask> golang.org/x/sys v0.0.0-20190606122018-79a91cf218c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
<mask> golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
<mask> golang.org/x/sys v0.0.0-20190924154521-2837fb4f24fe/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
<mask> golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
<mask> golang.org/x/sys v0.0.0-20191008105621-543471e840be/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
<mask> golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
<mask> golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
</s> Pull request: all: update backend tools and dependencies
Merge in DNS/adguard-home from 2275-update-tools to master
Squashed commit of the following:
commit 4de1cf91dc7accabeb2103d3c8ec424bee2a89ce
Merge: 06b302c62 62a8fe0b7
Author: Ainar Garipov <[email protected]>
Date: Thu Nov 19 16:22:30 2020 +0300
Merge branch 'master' into 2275-update-tools
commit 06b302c62958aa8ab4a9da423a32cd71037d58d7
Author: Ainar Garipov <[email protected]>
Date: Fri Nov 13 11:29:19 2020 +0300
all: update backend tools and dependencies </s> add golang.org/x/sys v0.0.0-20191008105621-543471e840be/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= </s> add golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= </s> add golang.org/x/sys v0.0.0-20190411185658-b44545bcd369/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= </s> add golang.org/x/sys v0.0.0-20201009025420-dfb3f7c4e634/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20201015000850-e3ed0017c211/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= </s> add golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= </s> remove golang.org/x/sys v0.0.0-20201109165425-215b40eba54c h1:+B+zPA6081G5cEb2triOIJpcvSW4AYzmIyWAqMn2JAc=
golang.org/x/sys v0.0.0-20201109165425-215b40eba54c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
</s> add golang.org/x/sys v0.0.0-20201101102859-da207088b7d1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20201112073958-5cba982894dd h1:5CtCZbICpIOFdgO940moixOPjc0178IU44m4EjOO5IY=
golang.org/x/sys v0.0.0-20201112073958-5cba982894dd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68 h1:nxC68pudNYkKU6jWhgrqdreuFiOQWj1Fs7T3VrH4Pjw=
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/term v0.0.0-20201117132131-f5c789dd3221 h1:/ZHdbVpdR/jk3g30/d4yUL0JU9kksj8+F/bnQUVLGDM=
golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw=
|
https://github.com/AdguardTeam/AdGuardHome/commit/642dcd647c0f753f7955499484a9ad01a4a36eca
|
go.sum
|
keep keep keep add keep keep keep keep keep keep
|
<mask> golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
<mask> golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
<mask> golang.org/x/sys v0.0.0-20190924154521-2837fb4f24fe/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
<mask> golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
<mask> golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
<mask> golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
<mask> golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
<mask> golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
<mask> golang.org/x/sys v0.0.0-20200331124033-c3d80250170d h1:nc5K6ox/4lTFbMVSL9WRR81ixkcwXThoiF6yf+R9scA=
<mask> golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
</s> Pull request: all: update backend tools and dependencies
Merge in DNS/adguard-home from 2275-update-tools to master
Squashed commit of the following:
commit 4de1cf91dc7accabeb2103d3c8ec424bee2a89ce
Merge: 06b302c62 62a8fe0b7
Author: Ainar Garipov <[email protected]>
Date: Thu Nov 19 16:22:30 2020 +0300
Merge branch 'master' into 2275-update-tools
commit 06b302c62958aa8ab4a9da423a32cd71037d58d7
Author: Ainar Garipov <[email protected]>
Date: Fri Nov 13 11:29:19 2020 +0300
all: update backend tools and dependencies </s> add golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= </s> add golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= </s> add golang.org/x/sys v0.0.0-20201009025420-dfb3f7c4e634/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20201015000850-e3ed0017c211/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= </s> add golang.org/x/sys v0.0.0-20190411185658-b44545bcd369/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= </s> add golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= </s> remove golang.org/x/sys v0.0.0-20201109165425-215b40eba54c h1:+B+zPA6081G5cEb2triOIJpcvSW4AYzmIyWAqMn2JAc=
golang.org/x/sys v0.0.0-20201109165425-215b40eba54c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
</s> add golang.org/x/sys v0.0.0-20201101102859-da207088b7d1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20201112073958-5cba982894dd h1:5CtCZbICpIOFdgO940moixOPjc0178IU44m4EjOO5IY=
golang.org/x/sys v0.0.0-20201112073958-5cba982894dd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68 h1:nxC68pudNYkKU6jWhgrqdreuFiOQWj1Fs7T3VrH4Pjw=
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/term v0.0.0-20201117132131-f5c789dd3221 h1:/ZHdbVpdR/jk3g30/d4yUL0JU9kksj8+F/bnQUVLGDM=
golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw=
|
https://github.com/AdguardTeam/AdGuardHome/commit/642dcd647c0f753f7955499484a9ad01a4a36eca
|
go.sum
|
keep keep keep add keep keep keep keep keep
|
<mask> golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
<mask> golang.org/x/sys v0.0.0-20200519105757-fe76b779f299 h1:DYfZAGf2WMFjMxbgTjaC+2HC7NkNAQs+6Q8b9WEB/F4=
<mask> golang.org/x/sys v0.0.0-20200519105757-fe76b779f299/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
<mask> golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
<mask> golang.org/x/sys v0.0.0-20201018230417-eeed37f84f13/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
<mask> golang.org/x/sys v0.0.0-20201101102859-da207088b7d1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
<mask> golang.org/x/sys v0.0.0-20201112073958-5cba982894dd h1:5CtCZbICpIOFdgO940moixOPjc0178IU44m4EjOO5IY=
<mask> golang.org/x/sys v0.0.0-20201112073958-5cba982894dd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
<mask> golang.org/x/sys v0.0.0-20201119102817-f84b799fce68 h1:nxC68pudNYkKU6jWhgrqdreuFiOQWj1Fs7T3VrH4Pjw=
</s> Pull request: all: update backend tools and dependencies
Merge in DNS/adguard-home from 2275-update-tools to master
Squashed commit of the following:
commit 4de1cf91dc7accabeb2103d3c8ec424bee2a89ce
Merge: 06b302c62 62a8fe0b7
Author: Ainar Garipov <[email protected]>
Date: Thu Nov 19 16:22:30 2020 +0300
Merge branch 'master' into 2275-update-tools
commit 06b302c62958aa8ab4a9da423a32cd71037d58d7
Author: Ainar Garipov <[email protected]>
Date: Fri Nov 13 11:29:19 2020 +0300
all: update backend tools and dependencies </s> remove golang.org/x/sys v0.0.0-20201109165425-215b40eba54c h1:+B+zPA6081G5cEb2triOIJpcvSW4AYzmIyWAqMn2JAc=
golang.org/x/sys v0.0.0-20201109165425-215b40eba54c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
</s> add golang.org/x/sys v0.0.0-20201101102859-da207088b7d1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20201112073958-5cba982894dd h1:5CtCZbICpIOFdgO940moixOPjc0178IU44m4EjOO5IY=
golang.org/x/sys v0.0.0-20201112073958-5cba982894dd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68 h1:nxC68pudNYkKU6jWhgrqdreuFiOQWj1Fs7T3VrH4Pjw=
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/term v0.0.0-20201117132131-f5c789dd3221 h1:/ZHdbVpdR/jk3g30/d4yUL0JU9kksj8+F/bnQUVLGDM=
golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= </s> add golang.org/x/sys v0.0.0-20191008105621-543471e840be/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= </s> add golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= </s> add golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= </s> add golang.org/x/sys v0.0.0-20190411185658-b44545bcd369/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= </s> add golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
https://github.com/AdguardTeam/AdGuardHome/commit/642dcd647c0f753f7955499484a9ad01a4a36eca
|
go.sum
|
keep keep keep keep replace replace keep keep keep keep keep
|
<mask> golang.org/x/sys v0.0.0-20200519105757-fe76b779f299 h1:DYfZAGf2WMFjMxbgTjaC+2HC7NkNAQs+6Q8b9WEB/F4=
<mask> golang.org/x/sys v0.0.0-20200519105757-fe76b779f299/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
<mask> golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
<mask> golang.org/x/sys v0.0.0-20201018230417-eeed37f84f13/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
<mask> golang.org/x/sys v0.0.0-20201109165425-215b40eba54c h1:+B+zPA6081G5cEb2triOIJpcvSW4AYzmIyWAqMn2JAc=
<mask> golang.org/x/sys v0.0.0-20201109165425-215b40eba54c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
<mask> golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
<mask> golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
<mask> golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
<mask> golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs=
<mask> golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
</s> Pull request: all: update backend tools and dependencies
Merge in DNS/adguard-home from 2275-update-tools to master
Squashed commit of the following:
commit 4de1cf91dc7accabeb2103d3c8ec424bee2a89ce
Merge: 06b302c62 62a8fe0b7
Author: Ainar Garipov <[email protected]>
Date: Thu Nov 19 16:22:30 2020 +0300
Merge branch 'master' into 2275-update-tools
commit 06b302c62958aa8ab4a9da423a32cd71037d58d7
Author: Ainar Garipov <[email protected]>
Date: Fri Nov 13 11:29:19 2020 +0300
all: update backend tools and dependencies </s> add golang.org/x/sys v0.0.0-20201009025420-dfb3f7c4e634/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20201015000850-e3ed0017c211/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= </s> add golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= </s> add golang.org/x/sys v0.0.0-20191008105621-543471e840be/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= </s> add golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= </s> add golang.org/x/sys v0.0.0-20190411185658-b44545bcd369/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= </s> add golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
https://github.com/AdguardTeam/AdGuardHome/commit/642dcd647c0f753f7955499484a9ad01a4a36eca
|
go.sum
|
keep keep add keep keep keep keep keep keep
|
<mask> golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
<mask> golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
<mask> golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
<mask> golang.org/x/tools v0.0.0-20180828015842-6cd1fcedba52/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
<mask> golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
<mask> golang.org/x/tools v0.0.0-20181030000716-a0a13e073c7b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
<mask> golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
<mask> golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=
<mask> golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
</s> Pull request: all: update backend tools and dependencies
Merge in DNS/adguard-home from 2275-update-tools to master
Squashed commit of the following:
commit 4de1cf91dc7accabeb2103d3c8ec424bee2a89ce
Merge: 06b302c62 62a8fe0b7
Author: Ainar Garipov <[email protected]>
Date: Thu Nov 19 16:22:30 2020 +0300
Merge branch 'master' into 2275-update-tools
commit 06b302c62958aa8ab4a9da423a32cd71037d58d7
Author: Ainar Garipov <[email protected]>
Date: Fri Nov 13 11:29:19 2020 +0300
all: update backend tools and dependencies </s> add golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= </s> add golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= </s> add golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= </s> add golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20191112195655-aa38f8e97acc/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= </s> add golang.org/x/tools v0.0.0-20200308013534-11ec41452d41/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= </s> remove golang.org/x/sys v0.0.0-20201109165425-215b40eba54c h1:+B+zPA6081G5cEb2triOIJpcvSW4AYzmIyWAqMn2JAc=
golang.org/x/sys v0.0.0-20201109165425-215b40eba54c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
</s> add golang.org/x/sys v0.0.0-20201101102859-da207088b7d1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20201112073958-5cba982894dd h1:5CtCZbICpIOFdgO940moixOPjc0178IU44m4EjOO5IY=
golang.org/x/sys v0.0.0-20201112073958-5cba982894dd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68 h1:nxC68pudNYkKU6jWhgrqdreuFiOQWj1Fs7T3VrH4Pjw=
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/term v0.0.0-20201117132131-f5c789dd3221 h1:/ZHdbVpdR/jk3g30/d4yUL0JU9kksj8+F/bnQUVLGDM=
golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw=
|
https://github.com/AdguardTeam/AdGuardHome/commit/642dcd647c0f753f7955499484a9ad01a4a36eca
|
go.sum
|
keep keep add keep keep keep keep
|
<mask> golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
<mask> golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=
<mask> golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
<mask> golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
<mask> golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
<mask> golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
<mask> golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
</s> Pull request: all: update backend tools and dependencies
Merge in DNS/adguard-home from 2275-update-tools to master
Squashed commit of the following:
commit 4de1cf91dc7accabeb2103d3c8ec424bee2a89ce
Merge: 06b302c62 62a8fe0b7
Author: Ainar Garipov <[email protected]>
Date: Thu Nov 19 16:22:30 2020 +0300
Merge branch 'master' into 2275-update-tools
commit 06b302c62958aa8ab4a9da423a32cd71037d58d7
Author: Ainar Garipov <[email protected]>
Date: Fri Nov 13 11:29:19 2020 +0300
all: update backend tools and dependencies </s> add golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= </s> add golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= </s> add golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= </s> add golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20191112195655-aa38f8e97acc/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= </s> add golang.org/x/tools v0.0.0-20200308013534-11ec41452d41/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= </s> add github.com/golang/groupcache v0.0.0-20190129154638-5b532d6fd5ef/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
|
https://github.com/AdguardTeam/AdGuardHome/commit/642dcd647c0f753f7955499484a9ad01a4a36eca
|
go.sum
|
keep add keep keep keep keep keep keep
|
<mask> golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
<mask> golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
<mask> golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
<mask> golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
<mask> golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
<mask> golang.org/x/tools v0.0.0-20190624180213-70d37148ca0c/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
<mask> golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
<mask> golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
</s> Pull request: all: update backend tools and dependencies
Merge in DNS/adguard-home from 2275-update-tools to master
Squashed commit of the following:
commit 4de1cf91dc7accabeb2103d3c8ec424bee2a89ce
Merge: 06b302c62 62a8fe0b7
Author: Ainar Garipov <[email protected]>
Date: Thu Nov 19 16:22:30 2020 +0300
Merge branch 'master' into 2275-update-tools
commit 06b302c62958aa8ab4a9da423a32cd71037d58d7
Author: Ainar Garipov <[email protected]>
Date: Fri Nov 13 11:29:19 2020 +0300
all: update backend tools and dependencies </s> add golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= </s> add golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= </s> add golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20191112195655-aa38f8e97acc/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= </s> add golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= </s> add golang.org/x/tools v0.0.0-20200308013534-11ec41452d41/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= </s> add github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y=
|
https://github.com/AdguardTeam/AdGuardHome/commit/642dcd647c0f753f7955499484a9ad01a4a36eca
|
go.sum
|
keep add keep keep keep keep
|
<mask> golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
<mask> golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
<mask> golang.org/x/tools v0.0.0-20190624180213-70d37148ca0c/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
<mask> golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
<mask> golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
<mask> golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
</s> Pull request: all: update backend tools and dependencies
Merge in DNS/adguard-home from 2275-update-tools to master
Squashed commit of the following:
commit 4de1cf91dc7accabeb2103d3c8ec424bee2a89ce
Merge: 06b302c62 62a8fe0b7
Author: Ainar Garipov <[email protected]>
Date: Thu Nov 19 16:22:30 2020 +0300
Merge branch 'master' into 2275-update-tools
commit 06b302c62958aa8ab4a9da423a32cd71037d58d7
Author: Ainar Garipov <[email protected]>
Date: Fri Nov 13 11:29:19 2020 +0300
all: update backend tools and dependencies </s> add golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= </s> add golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20191112195655-aa38f8e97acc/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= </s> add golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= </s> add golang.org/x/tools v0.0.0-20200308013534-11ec41452d41/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= </s> add golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= </s> add github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
|
https://github.com/AdguardTeam/AdGuardHome/commit/642dcd647c0f753f7955499484a9ad01a4a36eca
|
go.sum
|
keep add keep keep keep keep keep keep
|
<mask> golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
<mask> golang.org/x/tools v0.0.0-20190624180213-70d37148ca0c/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
<mask> golang.org/x/tools v0.0.0-20191216052735-49a3e744a425 h1:VvQyQJN0tSuecqgcIxMWnnfG5kSmgy9KZR9sW3W5QeA=
<mask> golang.org/x/tools v0.0.0-20191216052735-49a3e744a425/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
<mask> golang.org/x/tools v0.0.0-20200308013534-11ec41452d41/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw=
<mask> golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
<mask> golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
<mask> golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=
</s> Pull request: all: update backend tools and dependencies
Merge in DNS/adguard-home from 2275-update-tools to master
Squashed commit of the following:
commit 4de1cf91dc7accabeb2103d3c8ec424bee2a89ce
Merge: 06b302c62 62a8fe0b7
Author: Ainar Garipov <[email protected]>
Date: Thu Nov 19 16:22:30 2020 +0300
Merge branch 'master' into 2275-update-tools
commit 06b302c62958aa8ab4a9da423a32cd71037d58d7
Author: Ainar Garipov <[email protected]>
Date: Fri Nov 13 11:29:19 2020 +0300
all: update backend tools and dependencies </s> add golang.org/x/tools v0.0.0-20200308013534-11ec41452d41/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= </s> add golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= </s> add golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= </s> add golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= </s> add golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= </s> remove howett.net/plist v0.0.0-20200419221736-3b63eb3a43b5
</s> add howett.net/plist v0.0.0-20201026045517-117a925f2150
|
https://github.com/AdguardTeam/AdGuardHome/commit/642dcd647c0f753f7955499484a9ad01a4a36eca
|
go.sum
|
keep keep keep add keep keep keep keep keep keep
|
<mask> golang.org/x/tools v0.0.0-20191112195655-aa38f8e97acc/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
<mask> golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
<mask> golang.org/x/tools v0.0.0-20191216052735-49a3e744a425 h1:VvQyQJN0tSuecqgcIxMWnnfG5kSmgy9KZR9sW3W5QeA=
<mask> golang.org/x/tools v0.0.0-20191216052735-49a3e744a425/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
<mask> golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
<mask> golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=
<mask> golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
<mask> golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE=
<mask> golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
<mask> google.golang.org/api v0.0.0-20180910000450-7ca32eb868bf/go.mod h1:4mhQ8q/RsB7i+udVvVy5NUi08OU8ZlA0gRVgrF7VFY0=
</s> Pull request: all: update backend tools and dependencies
Merge in DNS/adguard-home from 2275-update-tools to master
Squashed commit of the following:
commit 4de1cf91dc7accabeb2103d3c8ec424bee2a89ce
Merge: 06b302c62 62a8fe0b7
Author: Ainar Garipov <[email protected]>
Date: Thu Nov 19 16:22:30 2020 +0300
Merge branch 'master' into 2275-update-tools
commit 06b302c62958aa8ab4a9da423a32cd71037d58d7
Author: Ainar Garipov <[email protected]>
Date: Fri Nov 13 11:29:19 2020 +0300
all: update backend tools and dependencies </s> add golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20191112195655-aa38f8e97acc/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= </s> add golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= </s> add golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= </s> add golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= </s> add golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= </s> remove howett.net/plist v0.0.0-20200419221736-3b63eb3a43b5
</s> add howett.net/plist v0.0.0-20201026045517-117a925f2150
|
https://github.com/AdguardTeam/AdGuardHome/commit/642dcd647c0f753f7955499484a9ad01a4a36eca
|
go.sum
|
keep keep add keep keep keep keep
|
<mask> google.golang.org/api v0.0.0-20180910000450-7ca32eb868bf/go.mod h1:4mhQ8q/RsB7i+udVvVy5NUi08OU8ZlA0gRVgrF7VFY0=
<mask> google.golang.org/api v0.0.0-20181030000543-1d582fd0359e/go.mod h1:4mhQ8q/RsB7i+udVvVy5NUi08OU8ZlA0gRVgrF7VFY0=
<mask> google.golang.org/api v0.1.0/go.mod h1:UGEZY7KEX120AnNLIHFMKIo4obdJhkp2tPbaPlQx13Y=
<mask> google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
<mask> google.golang.org/appengine v1.2.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
<mask> google.golang.org/appengine v1.3.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
<mask> google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
</s> Pull request: all: update backend tools and dependencies
Merge in DNS/adguard-home from 2275-update-tools to master
Squashed commit of the following:
commit 4de1cf91dc7accabeb2103d3c8ec424bee2a89ce
Merge: 06b302c62 62a8fe0b7
Author: Ainar Garipov <[email protected]>
Date: Thu Nov 19 16:22:30 2020 +0300
Merge branch 'master' into 2275-update-tools
commit 06b302c62958aa8ab4a9da423a32cd71037d58d7
Author: Ainar Garipov <[email protected]>
Date: Fri Nov 13 11:29:19 2020 +0300
all: update backend tools and dependencies </s> add google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= </s> add golang.org/x/tools v0.0.0-20200308013534-11ec41452d41/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= </s> add github.com/spf13/viper v1.4.0/go.mod h1:PTJ7Z/lr49W6bUbkmS1V3by4uWynFiR9p7+dSq/yZzE=
github.com/spf13/viper v1.7.0/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg= </s> add github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= </s> add github.com/grpc-ecosystem/go-grpc-middleware v1.0.0/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs=
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= </s> add github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y=
|
https://github.com/AdguardTeam/AdGuardHome/commit/642dcd647c0f753f7955499484a9ad01a4a36eca
|
go.sum
|
keep keep keep add keep keep keep keep
|
<mask> google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
<mask> google.golang.org/appengine v1.2.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
<mask> google.golang.org/appengine v1.3.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
<mask> google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
<mask> google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
<mask> google.golang.org/genproto v0.0.0-20180831171423-11092d34479b/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
<mask> google.golang.org/genproto v0.0.0-20181029155118-b69ba1387ce2/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
<mask> google.golang.org/genproto v0.0.0-20181202183823-bd91e49a0898/go.mod h1:7Ep/1NZk928CDR8SjdVbjWNpdIf6nzjE3BTgJDr2Atg=
</s> Pull request: all: update backend tools and dependencies
Merge in DNS/adguard-home from 2275-update-tools to master
Squashed commit of the following:
commit 4de1cf91dc7accabeb2103d3c8ec424bee2a89ce
Merge: 06b302c62 62a8fe0b7
Author: Ainar Garipov <[email protected]>
Date: Thu Nov 19 16:22:30 2020 +0300
Merge branch 'master' into 2275-update-tools
commit 06b302c62958aa8ab4a9da423a32cd71037d58d7
Author: Ainar Garipov <[email protected]>
Date: Fri Nov 13 11:29:19 2020 +0300
all: update backend tools and dependencies </s> add google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE=
google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M=
google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg=
google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg=
google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= </s> add google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= </s> add google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= </s> add google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8=
google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= </s> add github.com/spf13/viper v1.4.0/go.mod h1:PTJ7Z/lr49W6bUbkmS1V3by4uWynFiR9p7+dSq/yZzE=
github.com/spf13/viper v1.7.0/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg= </s> add github.com/grpc-ecosystem/go-grpc-middleware v1.0.0/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs=
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk=
|
https://github.com/AdguardTeam/AdGuardHome/commit/642dcd647c0f753f7955499484a9ad01a4a36eca
|
go.sum
|
keep keep add keep keep keep keep keep
|
<mask> google.golang.org/genproto v0.0.0-20181029155118-b69ba1387ce2/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
<mask> google.golang.org/genproto v0.0.0-20181202183823-bd91e49a0898/go.mod h1:7Ep/1NZk928CDR8SjdVbjWNpdIf6nzjE3BTgJDr2Atg=
<mask> google.golang.org/genproto v0.0.0-20190306203927-b5d61aea6440/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
<mask> google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
<mask> google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
<mask> google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
<mask> google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
<mask> google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8=
</s> Pull request: all: update backend tools and dependencies
Merge in DNS/adguard-home from 2275-update-tools to master
Squashed commit of the following:
commit 4de1cf91dc7accabeb2103d3c8ec424bee2a89ce
Merge: 06b302c62 62a8fe0b7
Author: Ainar Garipov <[email protected]>
Date: Thu Nov 19 16:22:30 2020 +0300
Merge branch 'master' into 2275-update-tools
commit 06b302c62958aa8ab4a9da423a32cd71037d58d7
Author: Ainar Garipov <[email protected]>
Date: Fri Nov 13 11:29:19 2020 +0300
all: update backend tools and dependencies </s> add google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= </s> add google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8=
google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= </s> add google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= </s> add github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU=
github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= </s> add github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= </s> remove github.com/insomniacslk/dhcp v0.0.0-20200621044212-d74cd86ad5b8 h1:u+vle+5E78+cT/CSMD5/Y3NUpMgA83Yu2KhG+Zbco/k=
github.com/insomniacslk/dhcp v0.0.0-20200621044212-d74cd86ad5b8/go.mod h1:CfMdguCK66I5DAUJgGKyNz8aB6vO5dZzkm9Xep6WGvw=
</s> add github.com/insomniacslk/dhcp v0.0.0-20201112113307-4de412bc85d8 h1:R1oP0/QEyvaL7dm+mBQouQ9V1X6gqQr5taZA1yaq5zQ=
github.com/insomniacslk/dhcp v0.0.0-20201112113307-4de412bc85d8/go.mod h1:TKl4jN3Voofo4UJIicyNhWGp/nlQqQkFxmwIFTvBkKI=
|
https://github.com/AdguardTeam/AdGuardHome/commit/642dcd647c0f753f7955499484a9ad01a4a36eca
|
go.sum
|
keep keep keep add keep keep keep keep keep
|
<mask> google.golang.org/genproto v0.0.0-20190306203927-b5d61aea6440/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
<mask> google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
<mask> google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
<mask> google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
<mask> google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
<mask> google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8=
<mask> google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
<mask> google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo=
<mask> google.golang.org/grpc v1.14.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw=
</s> Pull request: all: update backend tools and dependencies
Merge in DNS/adguard-home from 2275-update-tools to master
Squashed commit of the following:
commit 4de1cf91dc7accabeb2103d3c8ec424bee2a89ce
Merge: 06b302c62 62a8fe0b7
Author: Ainar Garipov <[email protected]>
Date: Thu Nov 19 16:22:30 2020 +0300
Merge branch 'master' into 2275-update-tools
commit 06b302c62958aa8ab4a9da423a32cd71037d58d7
Author: Ainar Garipov <[email protected]>
Date: Fri Nov 13 11:29:19 2020 +0300
all: update backend tools and dependencies </s> add google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8=
google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= </s> add google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= </s> add google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= </s> add google.golang.org/grpc v1.21.0/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM=
google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= </s> add github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= </s> remove github.com/insomniacslk/dhcp v0.0.0-20200621044212-d74cd86ad5b8 h1:u+vle+5E78+cT/CSMD5/Y3NUpMgA83Yu2KhG+Zbco/k=
github.com/insomniacslk/dhcp v0.0.0-20200621044212-d74cd86ad5b8/go.mod h1:CfMdguCK66I5DAUJgGKyNz8aB6vO5dZzkm9Xep6WGvw=
</s> add github.com/insomniacslk/dhcp v0.0.0-20201112113307-4de412bc85d8 h1:R1oP0/QEyvaL7dm+mBQouQ9V1X6gqQr5taZA1yaq5zQ=
github.com/insomniacslk/dhcp v0.0.0-20201112113307-4de412bc85d8/go.mod h1:TKl4jN3Voofo4UJIicyNhWGp/nlQqQkFxmwIFTvBkKI=
|
https://github.com/AdguardTeam/AdGuardHome/commit/642dcd647c0f753f7955499484a9ad01a4a36eca
|
go.sum
|
keep keep keep add keep keep keep keep
|
<mask> google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
<mask> google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
<mask> google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
<mask> google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
<mask> google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo=
<mask> google.golang.org/grpc v1.14.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw=
<mask> google.golang.org/grpc v1.16.0/go.mod h1:0JHn/cJsOMiMfNA9+DeHDlAU7KAAB5GDlYFpa9MZMio=
<mask> google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs=
</s> Pull request: all: update backend tools and dependencies
Merge in DNS/adguard-home from 2275-update-tools to master
Squashed commit of the following:
commit 4de1cf91dc7accabeb2103d3c8ec424bee2a89ce
Merge: 06b302c62 62a8fe0b7
Author: Ainar Garipov <[email protected]>
Date: Thu Nov 19 16:22:30 2020 +0300
Merge branch 'master' into 2275-update-tools
commit 06b302c62958aa8ab4a9da423a32cd71037d58d7
Author: Ainar Garipov <[email protected]>
Date: Fri Nov 13 11:29:19 2020 +0300
all: update backend tools and dependencies </s> add google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= </s> add google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= </s> add google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= </s> add google.golang.org/grpc v1.21.0/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM=
google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= </s> add github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= </s> remove github.com/insomniacslk/dhcp v0.0.0-20200621044212-d74cd86ad5b8 h1:u+vle+5E78+cT/CSMD5/Y3NUpMgA83Yu2KhG+Zbco/k=
github.com/insomniacslk/dhcp v0.0.0-20200621044212-d74cd86ad5b8/go.mod h1:CfMdguCK66I5DAUJgGKyNz8aB6vO5dZzkm9Xep6WGvw=
</s> add github.com/insomniacslk/dhcp v0.0.0-20201112113307-4de412bc85d8 h1:R1oP0/QEyvaL7dm+mBQouQ9V1X6gqQr5taZA1yaq5zQ=
github.com/insomniacslk/dhcp v0.0.0-20201112113307-4de412bc85d8/go.mod h1:TKl4jN3Voofo4UJIicyNhWGp/nlQqQkFxmwIFTvBkKI=
|
https://github.com/AdguardTeam/AdGuardHome/commit/642dcd647c0f753f7955499484a9ad01a4a36eca
|
go.sum
|
keep add keep keep keep keep keep
|
<mask> google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
<mask> google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38=
<mask> google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg=
<mask> google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
<mask> google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
<mask> google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0=
<mask> google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM=
</s> Pull request: all: update backend tools and dependencies
Merge in DNS/adguard-home from 2275-update-tools to master
Squashed commit of the following:
commit 4de1cf91dc7accabeb2103d3c8ec424bee2a89ce
Merge: 06b302c62 62a8fe0b7
Author: Ainar Garipov <[email protected]>
Date: Thu Nov 19 16:22:30 2020 +0300
Merge branch 'master' into 2275-update-tools
commit 06b302c62958aa8ab4a9da423a32cd71037d58d7
Author: Ainar Garipov <[email protected]>
Date: Fri Nov 13 11:29:19 2020 +0300
all: update backend tools and dependencies </s> add google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8=
google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= </s> add gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= </s> add google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= </s> add github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= </s> remove github.com/insomniacslk/dhcp v0.0.0-20200621044212-d74cd86ad5b8 h1:u+vle+5E78+cT/CSMD5/Y3NUpMgA83Yu2KhG+Zbco/k=
github.com/insomniacslk/dhcp v0.0.0-20200621044212-d74cd86ad5b8/go.mod h1:CfMdguCK66I5DAUJgGKyNz8aB6vO5dZzkm9Xep6WGvw=
</s> add github.com/insomniacslk/dhcp v0.0.0-20201112113307-4de412bc85d8 h1:R1oP0/QEyvaL7dm+mBQouQ9V1X6gqQr5taZA1yaq5zQ=
github.com/insomniacslk/dhcp v0.0.0-20201112113307-4de412bc85d8/go.mod h1:TKl4jN3Voofo4UJIicyNhWGp/nlQqQkFxmwIFTvBkKI= </s> add github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64=
github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ=
github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I=
github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc=
|
https://github.com/AdguardTeam/AdGuardHome/commit/642dcd647c0f753f7955499484a9ad01a4a36eca
|
go.sum
|
keep keep add keep keep keep keep keep
|
<mask> google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
<mask> google.golang.org/protobuf v1.25.0 h1:Ejskq+SyPohKW+1uil0JJMtmHCgJPJ/qWTxr8qp+R4c=
<mask> google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c=
<mask> gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
<mask> gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
<mask> gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f h1:BLraFXnmrev5lT+xlilqcH8XK9/i0At2xKjWk4p6zsU=
<mask> gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
<mask> gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI=
</s> Pull request: all: update backend tools and dependencies
Merge in DNS/adguard-home from 2275-update-tools to master
Squashed commit of the following:
commit 4de1cf91dc7accabeb2103d3c8ec424bee2a89ce
Merge: 06b302c62 62a8fe0b7
Author: Ainar Garipov <[email protected]>
Date: Thu Nov 19 16:22:30 2020 +0300
Merge branch 'master' into 2275-update-tools
commit 06b302c62958aa8ab4a9da423a32cd71037d58d7
Author: Ainar Garipov <[email protected]>
Date: Fri Nov 13 11:29:19 2020 +0300
all: update backend tools and dependencies </s> add google.golang.org/grpc v1.21.0/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM=
google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= </s> add github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg=
github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= </s> add github.com/jsimonetti/rtnetlink v0.0.0-20190606172950-9527aa82566a/go.mod h1:Oz+70psSo5OFh8DBl0Zv2ACw7Esh6pPUphlvZG9x7uw=
github.com/jsimonetti/rtnetlink v0.0.0-20200117123717-f846d4f6c1f4/go.mod h1:WGuG/smIU4J/54PblvSbh+xvCZmpJnFgr3ds6Z55XMQ=
github.com/jsimonetti/rtnetlink v0.0.0-20201009170750-9c6f07d100c1/go.mod h1:hqoO/u39cqLeBLebZ8fWdE96O7FxrAsRYhnVOdgHxok=
github.com/jsimonetti/rtnetlink v0.0.0-20201110080708-d2c240429e6c/go.mod h1:huN4d1phzjhlOsNIjFsw2SVRbwIHj3fJDMEU2SDPTmg= </s> add github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= </s> remove github.com/insomniacslk/dhcp v0.0.0-20200621044212-d74cd86ad5b8 h1:u+vle+5E78+cT/CSMD5/Y3NUpMgA83Yu2KhG+Zbco/k=
github.com/insomniacslk/dhcp v0.0.0-20200621044212-d74cd86ad5b8/go.mod h1:CfMdguCK66I5DAUJgGKyNz8aB6vO5dZzkm9Xep6WGvw=
</s> add github.com/insomniacslk/dhcp v0.0.0-20201112113307-4de412bc85d8 h1:R1oP0/QEyvaL7dm+mBQouQ9V1X6gqQr5taZA1yaq5zQ=
github.com/insomniacslk/dhcp v0.0.0-20201112113307-4de412bc85d8/go.mod h1:TKl4jN3Voofo4UJIicyNhWGp/nlQqQkFxmwIFTvBkKI= </s> add github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64=
github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ=
github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I=
github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc=
|
https://github.com/AdguardTeam/AdGuardHome/commit/642dcd647c0f753f7955499484a9ad01a4a36eca
|
go.sum
|
keep add keep keep keep keep
|
<mask> gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys=
<mask> gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw=
<mask> gopkg.in/natefinch/lumberjack.v2 v2.0.0 h1:1Lc07Kr7qY4U2YPouBjpCLxpiyxIVoxqXgkXLknAOE8=
<mask> gopkg.in/natefinch/lumberjack.v2 v2.0.0/go.mod h1:l0ndWWf7gzL7RNwBG7wST/UCcT4T24xpD6X8LsfU/+k=
<mask> gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo=
<mask> gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ=
</s> Pull request: all: update backend tools and dependencies
Merge in DNS/adguard-home from 2275-update-tools to master
Squashed commit of the following:
commit 4de1cf91dc7accabeb2103d3c8ec424bee2a89ce
Merge: 06b302c62 62a8fe0b7
Author: Ainar Garipov <[email protected]>
Date: Thu Nov 19 16:22:30 2020 +0300
Merge branch 'master' into 2275-update-tools
commit 06b302c62958aa8ab4a9da423a32cd71037d58d7
Author: Ainar Garipov <[email protected]>
Date: Fri Nov 13 11:29:19 2020 +0300
all: update backend tools and dependencies </s> add gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= </s> add gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= </s> remove howett.net/plist v0.0.0-20200419221736-3b63eb3a43b5
</s> add howett.net/plist v0.0.0-20201026045517-117a925f2150 </s> remove golang.org/x/sys v0.0.0-20201109165425-215b40eba54c
</s> add golang.org/x/sys v0.0.0-20201119102817-f84b799fce68 </s> add github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= </s> add github.com/fanliao/go-promise v0.0.0-20141029170127-1890db352a72/go.mod h1:PjfxuH4FZdUyfMdtBio2lsRr1AKEaVPwelzuHuh8Lqc=
github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
|
https://github.com/AdguardTeam/AdGuardHome/commit/642dcd647c0f753f7955499484a9ad01a4a36eca
|
go.sum
|
keep keep add keep keep keep keep keep keep
|
<mask> gopkg.in/ini.v1 v1.51.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k=
<mask> gopkg.in/natefinch/lumberjack.v2 v2.0.0 h1:1Lc07Kr7qY4U2YPouBjpCLxpiyxIVoxqXgkXLknAOE8=
<mask> gopkg.in/natefinch/lumberjack.v2 v2.0.0/go.mod h1:l0ndWWf7gzL7RNwBG7wST/UCcT4T24xpD6X8LsfU/+k=
<mask> gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ=
<mask> gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw=
<mask> gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74=
<mask> gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
<mask> gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
<mask> gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
</s> Pull request: all: update backend tools and dependencies
Merge in DNS/adguard-home from 2275-update-tools to master
Squashed commit of the following:
commit 4de1cf91dc7accabeb2103d3c8ec424bee2a89ce
Merge: 06b302c62 62a8fe0b7
Author: Ainar Garipov <[email protected]>
Date: Thu Nov 19 16:22:30 2020 +0300
Merge branch 'master' into 2275-update-tools
commit 06b302c62958aa8ab4a9da423a32cd71037d58d7
Author: Ainar Garipov <[email protected]>
Date: Fri Nov 13 11:29:19 2020 +0300
all: update backend tools and dependencies </s> add gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= </s> add gopkg.in/ini.v1 v1.51.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= </s> remove howett.net/plist v0.0.0-20200419221736-3b63eb3a43b5
</s> add howett.net/plist v0.0.0-20201026045517-117a925f2150 </s> remove golang.org/x/sys v0.0.0-20201109165425-215b40eba54c
</s> add golang.org/x/sys v0.0.0-20201119102817-f84b799fce68 </s> add github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= </s> add github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4=
github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA=
|
https://github.com/AdguardTeam/AdGuardHome/commit/642dcd647c0f753f7955499484a9ad01a4a36eca
|
go.sum
|
keep keep add keep keep keep keep
|
<mask> gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo=
<mask> gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ=
<mask> gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw=
<mask> gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
<mask> gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
<mask> gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
<mask> gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10=
</s> Pull request: all: update backend tools and dependencies
Merge in DNS/adguard-home from 2275-update-tools to master
Squashed commit of the following:
commit 4de1cf91dc7accabeb2103d3c8ec424bee2a89ce
Merge: 06b302c62 62a8fe0b7
Author: Ainar Garipov <[email protected]>
Date: Thu Nov 19 16:22:30 2020 +0300
Merge branch 'master' into 2275-update-tools
commit 06b302c62958aa8ab4a9da423a32cd71037d58d7
Author: Ainar Garipov <[email protected]>
Date: Fri Nov 13 11:29:19 2020 +0300
all: update backend tools and dependencies </s> add gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= </s> add gopkg.in/ini.v1 v1.51.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= </s> remove howett.net/plist v0.0.0-20200419221736-3b63eb3a43b5
</s> add howett.net/plist v0.0.0-20201026045517-117a925f2150 </s> remove golang.org/x/sys v0.0.0-20201109165425-215b40eba54c
</s> add golang.org/x/sys v0.0.0-20201119102817-f84b799fce68 </s> remove pinger.Run()
</s> add err = pinger.Run()
if err != nil {
log.Error("pinger.Run(): %v", err)
return true
} </s> add github.com/grpc-ecosystem/go-grpc-middleware v1.0.0/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs=
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk=
|
https://github.com/AdguardTeam/AdGuardHome/commit/642dcd647c0f753f7955499484a9ad01a4a36eca
|
go.sum
|
keep keep add keep keep keep keep keep keep
|
<mask> honnef.co/go/tools v0.0.0-20180728063816-88497007e858/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
<mask> honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
<mask> honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
<mask> honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
<mask> honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg=
<mask> howett.net/plist v0.0.0-20201026045517-117a925f2150 h1:s7O/9fwMNd6O1yXyQ8zv+U7dfl8k+zdiLWAY8h7XdVI=
<mask> howett.net/plist v0.0.0-20201026045517-117a925f2150/go.mod h1:vMygbs4qMhSZSc4lCUl2OEE+rDiIIJAIdR4m7MiMcm0=
<mask> rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8=
<mask> rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=
</s> Pull request: all: update backend tools and dependencies
Merge in DNS/adguard-home from 2275-update-tools to master
Squashed commit of the following:
commit 4de1cf91dc7accabeb2103d3c8ec424bee2a89ce
Merge: 06b302c62 62a8fe0b7
Author: Ainar Garipov <[email protected]>
Date: Thu Nov 19 16:22:30 2020 +0300
Merge branch 'master' into 2275-update-tools
commit 06b302c62958aa8ab4a9da423a32cd71037d58d7
Author: Ainar Garipov <[email protected]>
Date: Fri Nov 13 11:29:19 2020 +0300
all: update backend tools and dependencies </s> remove howett.net/plist v0.0.0-20200419221736-3b63eb3a43b5 h1:AQkaJpH+/FmqRjmXZPELom5zIERYZfwTjnHpfoVMQEc=
howett.net/plist v0.0.0-20200419221736-3b63eb3a43b5/go.mod h1:vMygbs4qMhSZSc4lCUl2OEE+rDiIIJAIdR4m7MiMcm0=
</s> add honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg=
howett.net/plist v0.0.0-20201026045517-117a925f2150 h1:s7O/9fwMNd6O1yXyQ8zv+U7dfl8k+zdiLWAY8h7XdVI=
howett.net/plist v0.0.0-20201026045517-117a925f2150/go.mod h1:vMygbs4qMhSZSc4lCUl2OEE+rDiIIJAIdR4m7MiMcm0=
rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= </s> remove howett.net/plist v0.0.0-20200419221736-3b63eb3a43b5
</s> add howett.net/plist v0.0.0-20201026045517-117a925f2150 </s> add github.com/coreos/bbolt v1.3.2/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk= </s> add github.com/coreos/etcd v3.3.13+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= </s> add github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= </s> add golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
https://github.com/AdguardTeam/AdGuardHome/commit/642dcd647c0f753f7955499484a9ad01a4a36eca
|
go.sum
|
keep keep keep keep replace replace keep keep keep keep
|
<mask> honnef.co/go/tools v0.0.0-20180728063816-88497007e858/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
<mask> honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
<mask> honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
<mask> honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
<mask> howett.net/plist v0.0.0-20200419221736-3b63eb3a43b5 h1:AQkaJpH+/FmqRjmXZPELom5zIERYZfwTjnHpfoVMQEc=
<mask> howett.net/plist v0.0.0-20200419221736-3b63eb3a43b5/go.mod h1:vMygbs4qMhSZSc4lCUl2OEE+rDiIIJAIdR4m7MiMcm0=
<mask> rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=
<mask> rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA=
<mask> sourcegraph.com/sourcegraph/go-diff v0.5.0/go.mod h1:kuch7UrkMzY0X+p9CRK03kfuPQ2zzQcaEFbx8wA8rck=
<mask> sourcegraph.com/sqs/pbtypes v0.0.0-20180604144634-d3ebe8f20ae4/go.mod h1:ketZ/q3QxT9HOBeFhu6RdvsftgpsbFHBF5Cas6cDKZ0=
</s> Pull request: all: update backend tools and dependencies
Merge in DNS/adguard-home from 2275-update-tools to master
Squashed commit of the following:
commit 4de1cf91dc7accabeb2103d3c8ec424bee2a89ce
Merge: 06b302c62 62a8fe0b7
Author: Ainar Garipov <[email protected]>
Date: Thu Nov 19 16:22:30 2020 +0300
Merge branch 'master' into 2275-update-tools
commit 06b302c62958aa8ab4a9da423a32cd71037d58d7
Author: Ainar Garipov <[email protected]>
Date: Fri Nov 13 11:29:19 2020 +0300
all: update backend tools and dependencies </s> add honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= </s> remove howett.net/plist v0.0.0-20200419221736-3b63eb3a43b5
</s> add howett.net/plist v0.0.0-20201026045517-117a925f2150 </s> add github.com/google/go-cmp v0.5.2 h1:X2ev0eStA3AbceY54o37/0PQ/UWqKEiiO2dKL5OPaFM=
github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= </s> add github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64=
github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ=
github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I=
github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc= </s> add github.com/rogpeppe/go-internal v1.3.2/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= </s> add github.com/spf13/viper v1.4.0/go.mod h1:PTJ7Z/lr49W6bUbkmS1V3by4uWynFiR9p7+dSq/yZzE=
github.com/spf13/viper v1.7.0/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg=
|
https://github.com/AdguardTeam/AdGuardHome/commit/642dcd647c0f753f7955499484a9ad01a4a36eca
|
go.sum
|
keep add keep keep keep keep keep keep
|
<mask>
<mask> "github.com/AdguardTeam/golibs/log"
<mask> "github.com/insomniacslk/dhcp/dhcpv4"
<mask> "github.com/insomniacslk/dhcp/dhcpv4/server4"
<mask> )
<mask>
<mask> // v4Server - DHCPv4 server
<mask> type v4Server struct {
</s> Pull request: all: update backend tools and dependencies
Merge in DNS/adguard-home from 2275-update-tools to master
Squashed commit of the following:
commit 4de1cf91dc7accabeb2103d3c8ec424bee2a89ce
Merge: 06b302c62 62a8fe0b7
Author: Ainar Garipov <[email protected]>
Date: Thu Nov 19 16:22:30 2020 +0300
Merge branch 'master' into 2275-update-tools
commit 06b302c62958aa8ab4a9da423a32cd71037d58d7
Author: Ainar Garipov <[email protected]>
Date: Fri Nov 13 11:29:19 2020 +0300
all: update backend tools and dependencies </s> remove "github.com/sparrc/go-ping"
</s> add </s> remove howett.net/plist v0.0.0-20200419221736-3b63eb3a43b5
</s> add howett.net/plist v0.0.0-20201026045517-117a925f2150 </s> remove pinger.Run()
</s> add err = pinger.Run()
if err != nil {
log.Error("pinger.Run(): %v", err)
return true
} </s> add github.com/gobuffalo/packr/v2 v2.8.1 // indirect </s> add github.com/go-ping/ping v0.0.0-20201115131931-3300c582a663
github.com/gobuffalo/envy v1.9.0 // indirect </s> remove golang.org/x/sys v0.0.0-20201109165425-215b40eba54c
</s> add golang.org/x/sys v0.0.0-20201119102817-f84b799fce68
|
https://github.com/AdguardTeam/AdGuardHome/commit/642dcd647c0f753f7955499484a9ad01a4a36eca
|
internal/dhcpd/v4.go
|
keep keep keep keep replace keep keep keep keep keep
|
<mask>
<mask> "github.com/AdguardTeam/golibs/log"
<mask> "github.com/insomniacslk/dhcp/dhcpv4"
<mask> "github.com/insomniacslk/dhcp/dhcpv4/server4"
<mask> "github.com/sparrc/go-ping"
<mask> )
<mask>
<mask> // v4Server - DHCPv4 server
<mask> type v4Server struct {
<mask> srv *server4.Server
</s> Pull request: all: update backend tools and dependencies
Merge in DNS/adguard-home from 2275-update-tools to master
Squashed commit of the following:
commit 4de1cf91dc7accabeb2103d3c8ec424bee2a89ce
Merge: 06b302c62 62a8fe0b7
Author: Ainar Garipov <[email protected]>
Date: Thu Nov 19 16:22:30 2020 +0300
Merge branch 'master' into 2275-update-tools
commit 06b302c62958aa8ab4a9da423a32cd71037d58d7
Author: Ainar Garipov <[email protected]>
Date: Fri Nov 13 11:29:19 2020 +0300
all: update backend tools and dependencies </s> add "github.com/go-ping/ping" </s> remove howett.net/plist v0.0.0-20200419221736-3b63eb3a43b5
</s> add howett.net/plist v0.0.0-20201026045517-117a925f2150 </s> remove pinger.Run()
</s> add err = pinger.Run()
if err != nil {
log.Error("pinger.Run(): %v", err)
return true
} </s> add github.com/gobuffalo/packr/v2 v2.8.1 // indirect </s> add github.com/go-ping/ping v0.0.0-20201115131931-3300c582a663
github.com/gobuffalo/envy v1.9.0 // indirect </s> remove golang.org/x/sys v0.0.0-20201109165425-215b40eba54c
</s> add golang.org/x/sys v0.0.0-20201119102817-f84b799fce68
|
https://github.com/AdguardTeam/AdGuardHome/commit/642dcd647c0f753f7955499484a9ad01a4a36eca
|
internal/dhcpd/v4.go
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> pinger.OnRecv = func(pkt *ping.Packet) {
<mask> reply = true
<mask> }
<mask> log.Debug("dhcpv4: Sending ICMP Echo to %v", target)
<mask> pinger.Run()
<mask>
<mask> if reply {
<mask> log.Info("dhcpv4: IP conflict: %v is already used by another device", target)
<mask> return false
<mask> }
</s> Pull request: all: update backend tools and dependencies
Merge in DNS/adguard-home from 2275-update-tools to master
Squashed commit of the following:
commit 4de1cf91dc7accabeb2103d3c8ec424bee2a89ce
Merge: 06b302c62 62a8fe0b7
Author: Ainar Garipov <[email protected]>
Date: Thu Nov 19 16:22:30 2020 +0300
Merge branch 'master' into 2275-update-tools
commit 06b302c62958aa8ab4a9da423a32cd71037d58d7
Author: Ainar Garipov <[email protected]>
Date: Fri Nov 13 11:29:19 2020 +0300
all: update backend tools and dependencies </s> add "github.com/go-ping/ping" </s> remove "github.com/sparrc/go-ping"
</s> add </s> remove # make build output
rm -f AdGuardHome
rm -f AdGuardHome.exe
# tests output
rm -rf data
rm -f coverage.txt
# static build output
rm -rf build
# dist folder
rm -rf $(DIST_DIR)
# client deps
rm -rf client/node_modules
# packr-generated files
PATH=$(GOPATH)/bin:$(PATH) packr clean || true
</s> add rm -f ./AdGuardHome ./AdGuardHome.exe ./coverage.txt
rm -f -r ./build/ ./client/node_modules/ ./data/ $(DIST_DIR)
# Set the GOPATH explicitly in case make clean is called from under sudo
# after a Docker build.
env PATH="$(GOPATH)/bin:$$PATH" packr clean </s> remove TEST_FLAGS := --race -v
</s> add TEST_FLAGS := --race $(VERBOSE) </s> add github.com/golang/groupcache v0.0.0-20190129154638-5b532d6fd5ef/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= </s> add github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y=
|
https://github.com/AdguardTeam/AdGuardHome/commit/642dcd647c0f753f7955499484a9ad01a4a36eca
|
internal/dhcpd/v4.go
|
keep keep keep keep replace replace replace replace replace replace replace keep keep
|
<mask> log.Error("Couldn't write config: %s", err)
<mask> return err
<mask> }
<mask>
<mask> userFilter := userFilter()
<mask> err = userFilter.save()
<mask> if err != nil {
<mask> log.Error("Couldn't save the user filter: %s", err)
<mask> return err
<mask> }
<mask>
<mask> return nil
<mask> }
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> remove userFilter := userFilter()
err = userFilter.save()
if err != nil {
log.Error("Couldn't save the user filter: %s", err)
}
</s> add </s> remove err := filter.load()
</s> add err := f.load(filter) </s> remove ok, err := f.update()
</s> add ok, err := f.update(&filt) </s> remove _, err = fmt.Fprintf(w, "OK %d rules\n", f.RulesCount)
</s> add _, err = fmt.Fprintf(w, "OK %d rules\n", filt.RulesCount) </s> remove resp.Updated, err = refreshFilters(flags|FilterRefreshForce, false)
</s> add resp.Updated, err = f.refreshFilters(flags|FilterRefreshForce, false) </s> remove func handleFilteringSetRules(w http.ResponseWriter, r *http.Request) {
</s> add func (f *Filtering) handleFilteringSetRules(w http.ResponseWriter, r *http.Request) {
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/config.go
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> httpRegister(http.MethodPost, "/control/update", handleUpdate)
<mask>
<mask> httpRegister("GET", "/control/profile", handleGetProfile)
<mask>
<mask> RegisterFilteringHandlers()
<mask> RegisterTLSHandlers()
<mask> RegisterBlockedServicesHandlers()
<mask> RegisterAuthHandlers()
<mask>
<mask> http.HandleFunc("/dns-query", postInstall(handleDOH))
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> remove func RegisterFilteringHandlers() {
httpRegister("GET", "/control/filtering/status", handleFilteringStatus)
httpRegister("POST", "/control/filtering/config", handleFilteringConfig)
httpRegister("POST", "/control/filtering/add_url", handleFilteringAddURL)
httpRegister("POST", "/control/filtering/remove_url", handleFilteringRemoveURL)
httpRegister("POST", "/control/filtering/set_url", handleFilteringSetURL)
httpRegister("POST", "/control/filtering/refresh", handleFilteringRefresh)
httpRegister("POST", "/control/filtering/set_rules", handleFilteringSetRules)
httpRegister("GET", "/control/filtering/check_host", handleCheckHost)
</s> add func (f *Filtering) RegisterFilteringHandlers() {
httpRegister("GET", "/control/filtering/status", f.handleFilteringStatus)
httpRegister("POST", "/control/filtering/config", f.handleFilteringConfig)
httpRegister("POST", "/control/filtering/add_url", f.handleFilteringAddURL)
httpRegister("POST", "/control/filtering/remove_url", f.handleFilteringRemoveURL)
httpRegister("POST", "/control/filtering/set_url", f.handleFilteringSetURL)
httpRegister("POST", "/control/filtering/refresh", f.handleFilteringRefresh)
httpRegister("POST", "/control/filtering/set_rules", f.handleFilteringSetRules)
httpRegister("GET", "/control/filtering/check_host", f.handleCheckHost) </s> remove func filterSetProperties(url string, newf filter, whitelist bool) int {
</s> add func (f *Filtering) filterSetProperties(url string, newf filter, whitelist bool) int { </s> add Context.filters.Close()
</s> add "bufio" </s> add "io" </s> remove "github.com/AdguardTeam/golibs/file"
</s> add
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/control.go
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> URL string `json:"url"`
<mask> Whitelist bool `json:"whitelist"`
<mask> }
<mask>
<mask> func handleFilteringAddURL(w http.ResponseWriter, r *http.Request) {
<mask> fj := filterAddJSON{}
<mask> err := json.NewDecoder(r.Body).Decode(&fj)
<mask> if err != nil {
<mask> httpError(w, http.StatusBadRequest, "Failed to parse request body json: %s", err)
<mask> return
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> remove func handleFilteringSetURL(w http.ResponseWriter, r *http.Request) {
</s> add func (f *Filtering) handleFilteringSetURL(w http.ResponseWriter, r *http.Request) { </s> remove func handleFilteringRemoveURL(w http.ResponseWriter, r *http.Request) {
</s> add func (f *Filtering) handleFilteringRemoveURL(w http.ResponseWriter, r *http.Request) { </s> remove func handleFilteringSetRules(w http.ResponseWriter, r *http.Request) {
</s> add func (f *Filtering) handleFilteringSetRules(w http.ResponseWriter, r *http.Request) { </s> remove func handleFilteringConfig(w http.ResponseWriter, r *http.Request) {
</s> add func (f *Filtering) handleFilteringConfig(w http.ResponseWriter, r *http.Request) { </s> remove func handleFilteringRefresh(w http.ResponseWriter, r *http.Request) {
</s> add func (f *Filtering) handleFilteringRefresh(w http.ResponseWriter, r *http.Request) { </s> remove func handleFilteringStatus(w http.ResponseWriter, r *http.Request) {
</s> add func (f *Filtering) handleFilteringStatus(w http.ResponseWriter, r *http.Request) {
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/control_filtering.go
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> return
<mask> }
<mask>
<mask> // Set necessary properties
<mask> f := filter{
<mask> Enabled: true,
<mask> URL: fj.URL,
<mask> Name: fj.Name,
<mask> white: fj.Whitelist,
<mask> }
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> remove f.ID = assignUniqueFilterID()
</s> add filt.ID = assignUniqueFilterID() </s> remove f := filter{
</s> add filt := filter{ </s> add Context.filters.Init() </s> remove Timeout: time.Minute * 5,
</s> add Timeout: 5 * time.Second, </s> remove status := filterSetProperties(fj.URL, f, fj.Whitelist)
</s> add status := f.filterSetProperties(fj.URL, filt, fj.Whitelist) </s> remove go periodicallyRefreshFilters()
</s> add go f.periodicallyRefreshFilters()
}
// Close - close the module
func (f *Filtering) Close() {
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/control_filtering.go
|
keep keep replace keep keep replace keep
|
<mask> white: fj.Whitelist,
<mask> }
<mask> f.ID = assignUniqueFilterID()
<mask>
<mask> // Download the filter contents
<mask> ok, err := f.update()
<mask> if err != nil {
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> remove httpError(w, http.StatusBadRequest, "Couldn't fetch filter from url %s: %s", f.URL, err)
return
}
if f.RulesCount == 0 {
httpError(w, http.StatusBadRequest, "Filter at the url %s has no rules (maybe it points to blank page?)", f.URL)
</s> add httpError(w, http.StatusBadRequest, "Couldn't fetch filter from url %s: %s", filt.URL, err) </s> remove ok, err := f.update()
assert.True(t, ok && err == nil)
</s> add ok, err := Context.filters.update(&f)
assert.Equal(t, nil, err)
assert.True(t, ok) </s> remove ok, err = f.update()
</s> add ok, err = Context.filters.update(&f) </s> remove f := filter{
</s> add filt := filter{ </s> remove
err := file.SafeWrite(filterFilePath, filter.Data)
// update LastUpdated field after saving the file
filter.LastUpdated = filter.LastTimeUpdated()
return err
}
func (filter *filter) saveAndBackupOld() error {
filterFilePath := filter.Path()
err := os.Rename(filterFilePath, filterFilePath+".old")
if err != nil && !os.IsNotExist(err) {
return err
</s> add err = os.Rename(tmpfile.Name(), filterFilePath)
if err != nil {
return false, err
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/control_filtering.go
|
keep keep replace replace replace replace replace keep keep keep replace replace replace replace replace replace replace replace keep keep
|
<mask> ok, err := f.update()
<mask> if err != nil {
<mask> httpError(w, http.StatusBadRequest, "Couldn't fetch filter from url %s: %s", f.URL, err)
<mask> return
<mask> }
<mask> if f.RulesCount == 0 {
<mask> httpError(w, http.StatusBadRequest, "Filter at the url %s has no rules (maybe it points to blank page?)", f.URL)
<mask> return
<mask> }
<mask> if !ok {
<mask> httpError(w, http.StatusBadRequest, "Filter at the url %s is invalid (maybe it points to blank page?)", f.URL)
<mask> return
<mask> }
<mask>
<mask> // Save the filter contents
<mask> err = f.save()
<mask> if err != nil {
<mask> httpError(w, http.StatusBadRequest, "Failed to save filter %d due to %s", f.ID, err)
<mask> return
<mask> }
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> remove ok, err := f.update()
</s> add ok, err := f.update(&filt) </s> remove if !filterAdd(f) {
httpError(w, http.StatusBadRequest, "Filter URL already added -- %s", f.URL)
</s> add if !filterAdd(filt) {
httpError(w, http.StatusBadRequest, "Filter URL already added -- %s", filt.URL) </s> remove f.ID = assignUniqueFilterID()
</s> add filt.ID = assignUniqueFilterID() </s> remove func handleFilteringSetRules(w http.ResponseWriter, r *http.Request) {
</s> add func (f *Filtering) handleFilteringSetRules(w http.ResponseWriter, r *http.Request) { </s> remove func handleFilteringAddURL(w http.ResponseWriter, r *http.Request) {
</s> add func (f *Filtering) handleFilteringAddURL(w http.ResponseWriter, r *http.Request) {
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/control_filtering.go
|
keep keep keep keep replace replace keep keep keep keep keep
|
<mask> return
<mask> }
<mask>
<mask> // URL is deemed valid, append it to filters, update config, write new filter file and tell dns to reload it
<mask> if !filterAdd(f) {
<mask> httpError(w, http.StatusBadRequest, "Filter URL already added -- %s", f.URL)
<mask> return
<mask> }
<mask>
<mask> onConfigModified()
<mask> enableFilters(true)
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> remove httpError(w, http.StatusBadRequest, "Filter at the url %s is invalid (maybe it points to blank page?)", f.URL)
return
}
// Save the filter contents
err = f.save()
if err != nil {
httpError(w, http.StatusBadRequest, "Failed to save filter %d due to %s", f.ID, err)
</s> add httpError(w, http.StatusBadRequest, "Filter at the url %s is invalid (maybe it points to blank page?)", filt.URL) </s> remove httpError(w, http.StatusBadRequest, "Couldn't fetch filter from url %s: %s", f.URL, err)
return
}
if f.RulesCount == 0 {
httpError(w, http.StatusBadRequest, "Filter at the url %s has no rules (maybe it points to blank page?)", f.URL)
</s> add httpError(w, http.StatusBadRequest, "Couldn't fetch filter from url %s: %s", filt.URL, err) </s> remove
return true, nil
}
// saves filter contents to the file in dataDir
// This method is safe to call during filters update,
// because it creates a new file and then renames it,
// so the currently opened file descriptors to the old filter file remain valid.
func (filter *filter) save() error {
</s> add </s> remove func handleFilteringSetRules(w http.ResponseWriter, r *http.Request) {
</s> add func (f *Filtering) handleFilteringSetRules(w http.ResponseWriter, r *http.Request) { </s> remove _, err = fmt.Fprintf(w, "OK %d rules\n", f.RulesCount)
</s> add _, err = fmt.Fprintf(w, "OK %d rules\n", filt.RulesCount) </s> remove func handleFilteringAddURL(w http.ResponseWriter, r *http.Request) {
</s> add func (f *Filtering) handleFilteringAddURL(w http.ResponseWriter, r *http.Request) {
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/control_filtering.go
|
keep keep keep keep replace keep keep keep keep keep
|
<mask>
<mask> onConfigModified()
<mask> enableFilters(true)
<mask>
<mask> _, err = fmt.Fprintf(w, "OK %d rules\n", f.RulesCount)
<mask> if err != nil {
<mask> httpError(w, http.StatusInternalServerError, "Couldn't write body: %s", err)
<mask> }
<mask> }
<mask>
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> remove func handleFilteringRemoveURL(w http.ResponseWriter, r *http.Request) {
</s> add func (f *Filtering) handleFilteringRemoveURL(w http.ResponseWriter, r *http.Request) { </s> remove func handleFilteringSetRules(w http.ResponseWriter, r *http.Request) {
</s> add func (f *Filtering) handleFilteringSetRules(w http.ResponseWriter, r *http.Request) { </s> remove userFilter := userFilter()
err = userFilter.save()
if err != nil {
log.Error("Couldn't save the user filter: %s", err)
}
</s> add </s> remove if !filterAdd(f) {
httpError(w, http.StatusBadRequest, "Filter URL already added -- %s", f.URL)
</s> add if !filterAdd(filt) {
httpError(w, http.StatusBadRequest, "Filter URL already added -- %s", filt.URL) </s> remove resp.Updated, err = refreshFilters(flags|FilterRefreshForce, false)
</s> add resp.Updated, err = f.refreshFilters(flags|FilterRefreshForce, false) </s> remove userFilter := userFilter()
err = userFilter.save()
if err != nil {
log.Error("Couldn't save the user filter: %s", err)
return err
}
</s> add
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/control_filtering.go
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> httpError(w, http.StatusInternalServerError, "Couldn't write body: %s", err)
<mask> }
<mask> }
<mask>
<mask> func handleFilteringRemoveURL(w http.ResponseWriter, r *http.Request) {
<mask>
<mask> type request struct {
<mask> URL string `json:"url"`
<mask> Whitelist bool `json:"whitelist"`
<mask> }
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> remove func handleFilteringAddURL(w http.ResponseWriter, r *http.Request) {
</s> add func (f *Filtering) handleFilteringAddURL(w http.ResponseWriter, r *http.Request) { </s> remove func handleFilteringRefresh(w http.ResponseWriter, r *http.Request) {
</s> add func (f *Filtering) handleFilteringRefresh(w http.ResponseWriter, r *http.Request) { </s> remove func handleFilteringSetURL(w http.ResponseWriter, r *http.Request) {
</s> add func (f *Filtering) handleFilteringSetURL(w http.ResponseWriter, r *http.Request) { </s> remove func handleFilteringSetRules(w http.ResponseWriter, r *http.Request) {
</s> add func (f *Filtering) handleFilteringSetRules(w http.ResponseWriter, r *http.Request) { </s> remove _, err = fmt.Fprintf(w, "OK %d rules\n", f.RulesCount)
</s> add _, err = fmt.Fprintf(w, "OK %d rules\n", filt.RulesCount) </s> remove userFilter := userFilter()
err = userFilter.save()
if err != nil {
log.Error("Couldn't save the user filter: %s", err)
}
</s> add
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/control_filtering.go
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> Whitelist bool `json:"whitelist"`
<mask> Data filterURLJSON `json:"data"`
<mask> }
<mask>
<mask> func handleFilteringSetURL(w http.ResponseWriter, r *http.Request) {
<mask> fj := filterURLReq{}
<mask> err := json.NewDecoder(r.Body).Decode(&fj)
<mask> if err != nil {
<mask> httpError(w, http.StatusBadRequest, "json decode: %s", err)
<mask> return
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> remove func handleFilteringAddURL(w http.ResponseWriter, r *http.Request) {
</s> add func (f *Filtering) handleFilteringAddURL(w http.ResponseWriter, r *http.Request) { </s> remove func handleFilteringConfig(w http.ResponseWriter, r *http.Request) {
</s> add func (f *Filtering) handleFilteringConfig(w http.ResponseWriter, r *http.Request) { </s> remove func handleFilteringRemoveURL(w http.ResponseWriter, r *http.Request) {
</s> add func (f *Filtering) handleFilteringRemoveURL(w http.ResponseWriter, r *http.Request) { </s> remove func handleFilteringSetRules(w http.ResponseWriter, r *http.Request) {
</s> add func (f *Filtering) handleFilteringSetRules(w http.ResponseWriter, r *http.Request) { </s> remove func handleFilteringRefresh(w http.ResponseWriter, r *http.Request) {
</s> add func (f *Filtering) handleFilteringRefresh(w http.ResponseWriter, r *http.Request) { </s> remove func handleFilteringStatus(w http.ResponseWriter, r *http.Request) {
</s> add func (f *Filtering) handleFilteringStatus(w http.ResponseWriter, r *http.Request) {
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/control_filtering.go
|
keep keep keep keep replace keep keep keep keep replace keep
|
<mask> http.Error(w, "invalid URL", http.StatusBadRequest)
<mask> return
<mask> }
<mask>
<mask> f := filter{
<mask> Enabled: fj.Data.Enabled,
<mask> Name: fj.Data.Name,
<mask> URL: fj.Data.URL,
<mask> }
<mask> status := filterSetProperties(fj.URL, f, fj.Whitelist)
<mask> if (status & statusFound) == 0 {
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> remove f := filter{
</s> add filt := filter{ </s> add Context.filters.Init() </s> remove Timeout: time.Minute * 5,
</s> add Timeout: 5 * time.Second, </s> remove body, err := ioutil.ReadAll(resp.Body)
if err != nil {
log.Printf("Couldn't fetch filter contents from URL %s, skipping: %s", filter.URL, err)
return false, err
</s> add htmlTest := true
firstChunk := make([]byte, 4*1024)
firstChunkLen := 0
buf := make([]byte, 64*1024)
total := 0
for {
n, err := resp.Body.Read(buf)
total += n
if htmlTest {
// gather full buffer firstChunk and perform its data tests
num := util.MinInt(n, len(firstChunk)-firstChunkLen)
copied := copy(firstChunk[firstChunkLen:], buf[:num])
firstChunkLen += copied
if firstChunkLen == len(firstChunk) || err == io.EOF {
if !isPrintableText(firstChunk) {
return false, fmt.Errorf("Data contains non-printable characters")
}
s := strings.ToLower(string(firstChunk))
if strings.Index(s, "<html") >= 0 ||
strings.Index(s, "<!doctype") >= 0 {
return false, fmt.Errorf("Data is HTML, not plain text")
}
htmlTest = false
firstChunk = nil
}
}
_, err2 := tmpfile.Write(buf[:n])
if err2 != nil {
return false, err2
}
if err == io.EOF {
break
}
if err != nil {
log.Printf("Couldn't fetch filter contents from URL %s, skipping: %s", filter.URL, err)
return false, err
} </s> remove if f.Enabled != newf.Enabled {
</s> add if filt.Enabled != newf.Enabled {
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/control_filtering.go
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> flags := FilterRefreshBlocklists
<mask> if fj.Whitelist {
<mask> flags = FilterRefreshAllowlists
<mask> }
<mask> nUpdated, _ := refreshFilters(flags, true)
<mask> // if at least 1 filter has been updated, refreshFilters() restarts the filtering automatically
<mask> // if not - we restart the filtering ourselves
<mask> restart = false
<mask> if nUpdated == 0 {
<mask> restart = true
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> remove resp.Updated, err = refreshFilters(flags|FilterRefreshForce, false)
</s> add resp.Updated, err = f.refreshFilters(flags|FilterRefreshForce, false) </s> add // Extract filter name and count number of rules
_, _ = tmpfile.Seek(0, io.SeekStart)
rulesCount, checksum, filterName := f.parseFilterContents(tmpfile) </s> remove checksum := crc32.ChecksumIEEE(body)
</s> add </s> remove // Count lines in the filter
for len(data) != 0 {
line := util.SplitNext(&data, '\n')
</s> add checksum = crc32.Update(checksum, crc32.IEEETable, []byte(line))
line = strings.TrimSpace(line) </s> remove var firstChunk []byte
if len(body) <= 4096 {
firstChunk = body
} else {
firstChunk = body[:4096]
}
if !isPrintableText(firstChunk) {
return false, fmt.Errorf("Data contains non-printable characters")
}
s := strings.ToLower(string(firstChunk))
if strings.Index(s, "<html") >= 0 ||
strings.Index(s, "<!doctype") >= 0 {
return false, fmt.Errorf("Data is HTML, not plain text")
}
// Extract filter name and count number of rules
rulesCount, filterName := parseFilterContents(body)
log.Printf("Filter %d has been updated: %d bytes, %d rules", filter.ID, len(body), rulesCount)
</s> add log.Printf("Filter %d has been updated: %d bytes, %d rules",
filter.ID, total, rulesCount) </s> remove body, err := ioutil.ReadAll(resp.Body)
if err != nil {
log.Printf("Couldn't fetch filter contents from URL %s, skipping: %s", filter.URL, err)
return false, err
</s> add htmlTest := true
firstChunk := make([]byte, 4*1024)
firstChunkLen := 0
buf := make([]byte, 64*1024)
total := 0
for {
n, err := resp.Body.Read(buf)
total += n
if htmlTest {
// gather full buffer firstChunk and perform its data tests
num := util.MinInt(n, len(firstChunk)-firstChunkLen)
copied := copy(firstChunk[firstChunkLen:], buf[:num])
firstChunkLen += copied
if firstChunkLen == len(firstChunk) || err == io.EOF {
if !isPrintableText(firstChunk) {
return false, fmt.Errorf("Data contains non-printable characters")
}
s := strings.ToLower(string(firstChunk))
if strings.Index(s, "<html") >= 0 ||
strings.Index(s, "<!doctype") >= 0 {
return false, fmt.Errorf("Data is HTML, not plain text")
}
htmlTest = false
firstChunk = nil
}
}
_, err2 := tmpfile.Write(buf[:n])
if err2 != nil {
return false, err2
}
if err == io.EOF {
break
}
if err != nil {
log.Printf("Couldn't fetch filter contents from URL %s, skipping: %s", filter.URL, err)
return false, err
}
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/control_filtering.go
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> enableFilters(true)
<mask> }
<mask> }
<mask>
<mask> func handleFilteringSetRules(w http.ResponseWriter, r *http.Request) {
<mask> body, err := ioutil.ReadAll(r.Body)
<mask> if err != nil {
<mask> httpError(w, http.StatusBadRequest, "Failed to read request body: %s", err)
<mask> return
<mask> }
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> remove func handleFilteringAddURL(w http.ResponseWriter, r *http.Request) {
</s> add func (f *Filtering) handleFilteringAddURL(w http.ResponseWriter, r *http.Request) { </s> remove func handleFilteringRemoveURL(w http.ResponseWriter, r *http.Request) {
</s> add func (f *Filtering) handleFilteringRemoveURL(w http.ResponseWriter, r *http.Request) { </s> remove func handleFilteringConfig(w http.ResponseWriter, r *http.Request) {
</s> add func (f *Filtering) handleFilteringConfig(w http.ResponseWriter, r *http.Request) { </s> remove func handleFilteringSetURL(w http.ResponseWriter, r *http.Request) {
</s> add func (f *Filtering) handleFilteringSetURL(w http.ResponseWriter, r *http.Request) { </s> remove userFilter := userFilter()
err = userFilter.save()
if err != nil {
log.Error("Couldn't save the user filter: %s", err)
}
</s> add </s> remove _, err = fmt.Fprintf(w, "OK %d rules\n", f.RulesCount)
</s> add _, err = fmt.Fprintf(w, "OK %d rules\n", filt.RulesCount)
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/control_filtering.go
|
keep keep replace replace replace replace replace keep keep keep replace keep keep keep
|
<mask> config.UserRules = strings.Split(string(body), "\n")
<mask> onConfigModified()
<mask> userFilter := userFilter()
<mask> err = userFilter.save()
<mask> if err != nil {
<mask> log.Error("Couldn't save the user filter: %s", err)
<mask> }
<mask> enableFilters(true)
<mask> }
<mask>
<mask> func handleFilteringRefresh(w http.ResponseWriter, r *http.Request) {
<mask> type Req struct {
<mask> White bool `json:"whitelist"`
<mask> }
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> remove userFilter := userFilter()
err = userFilter.save()
if err != nil {
log.Error("Couldn't save the user filter: %s", err)
return err
}
</s> add </s> remove func handleFilteringRemoveURL(w http.ResponseWriter, r *http.Request) {
</s> add func (f *Filtering) handleFilteringRemoveURL(w http.ResponseWriter, r *http.Request) { </s> remove func handleFilteringSetURL(w http.ResponseWriter, r *http.Request) {
</s> add func (f *Filtering) handleFilteringSetURL(w http.ResponseWriter, r *http.Request) { </s> remove func handleFilteringAddURL(w http.ResponseWriter, r *http.Request) {
</s> add func (f *Filtering) handleFilteringAddURL(w http.ResponseWriter, r *http.Request) { </s> remove func handleFilteringSetRules(w http.ResponseWriter, r *http.Request) {
</s> add func (f *Filtering) handleFilteringSetRules(w http.ResponseWriter, r *http.Request) {
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/control_filtering.go
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> flags := FilterRefreshBlocklists
<mask> if req.White {
<mask> flags = FilterRefreshAllowlists
<mask> }
<mask> resp.Updated, err = refreshFilters(flags|FilterRefreshForce, false)
<mask> Context.controlLock.Lock()
<mask> if err != nil {
<mask> httpError(w, http.StatusInternalServerError, "%s", err)
<mask> return
<mask> }
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> remove nUpdated, _ := refreshFilters(flags, true)
</s> add nUpdated, _ := f.refreshFilters(flags, true) </s> remove _, err = fmt.Fprintf(w, "OK %d rules\n", f.RulesCount)
</s> add _, err = fmt.Fprintf(w, "OK %d rules\n", filt.RulesCount) </s> remove ok, err := f.update()
</s> add ok, err := f.update(&filt) </s> remove userFilter := userFilter()
err = userFilter.save()
if err != nil {
log.Error("Couldn't save the user filter: %s", err)
return err
}
</s> add </s> remove func handleFilteringSetRules(w http.ResponseWriter, r *http.Request) {
</s> add func (f *Filtering) handleFilteringSetRules(w http.ResponseWriter, r *http.Request) { </s> remove body, err := ioutil.ReadAll(resp.Body)
if err != nil {
log.Printf("Couldn't fetch filter contents from URL %s, skipping: %s", filter.URL, err)
return false, err
</s> add htmlTest := true
firstChunk := make([]byte, 4*1024)
firstChunkLen := 0
buf := make([]byte, 64*1024)
total := 0
for {
n, err := resp.Body.Read(buf)
total += n
if htmlTest {
// gather full buffer firstChunk and perform its data tests
num := util.MinInt(n, len(firstChunk)-firstChunkLen)
copied := copy(firstChunk[firstChunkLen:], buf[:num])
firstChunkLen += copied
if firstChunkLen == len(firstChunk) || err == io.EOF {
if !isPrintableText(firstChunk) {
return false, fmt.Errorf("Data contains non-printable characters")
}
s := strings.ToLower(string(firstChunk))
if strings.Index(s, "<html") >= 0 ||
strings.Index(s, "<!doctype") >= 0 {
return false, fmt.Errorf("Data is HTML, not plain text")
}
htmlTest = false
firstChunk = nil
}
}
_, err2 := tmpfile.Write(buf[:n])
if err2 != nil {
return false, err2
}
if err == io.EOF {
break
}
if err != nil {
log.Printf("Couldn't fetch filter contents from URL %s, skipping: %s", filter.URL, err)
return false, err
}
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/control_filtering.go
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> return fj
<mask> }
<mask>
<mask> // Get filtering configuration
<mask> func handleFilteringStatus(w http.ResponseWriter, r *http.Request) {
<mask> resp := filteringConfig{}
<mask> config.RLock()
<mask> resp.Enabled = config.DNS.FilteringEnabled
<mask> resp.Interval = config.DNS.FiltersUpdateIntervalHours
<mask> for _, f := range config.Filters {
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> remove func handleFilteringConfig(w http.ResponseWriter, r *http.Request) {
</s> add func (f *Filtering) handleFilteringConfig(w http.ResponseWriter, r *http.Request) { </s> remove func handleFilteringSetURL(w http.ResponseWriter, r *http.Request) {
</s> add func (f *Filtering) handleFilteringSetURL(w http.ResponseWriter, r *http.Request) { </s> remove func handleFilteringAddURL(w http.ResponseWriter, r *http.Request) {
</s> add func (f *Filtering) handleFilteringAddURL(w http.ResponseWriter, r *http.Request) { </s> remove func handleCheckHost(w http.ResponseWriter, r *http.Request) {
</s> add func (f *Filtering) handleCheckHost(w http.ResponseWriter, r *http.Request) { </s> remove if config.DNS.FiltersUpdateIntervalHours != 0 && atomic.CompareAndSwapUint32(&refreshStatus, 0, 1) {
refreshLock.Lock()
_, isNetworkErr = refreshFiltersIfNecessary(FilterRefreshBlocklists | FilterRefreshAllowlists)
refreshLock.Unlock()
refreshStatus = 0
</s> add if config.DNS.FiltersUpdateIntervalHours != 0 && atomic.CompareAndSwapUint32(&f.refreshStatus, 0, 1) {
f.refreshLock.Lock()
_, isNetworkErr = f.refreshFiltersIfNecessary(FilterRefreshBlocklists | FilterRefreshAllowlists)
f.refreshLock.Unlock()
f.refreshStatus = 0 </s> remove func handleFilteringSetRules(w http.ResponseWriter, r *http.Request) {
</s> add func (f *Filtering) handleFilteringSetRules(w http.ResponseWriter, r *http.Request) {
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/control_filtering.go
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> }
<mask> }
<mask>
<mask> // Set filtering configuration
<mask> func handleFilteringConfig(w http.ResponseWriter, r *http.Request) {
<mask> req := filteringConfig{}
<mask> err := json.NewDecoder(r.Body).Decode(&req)
<mask> if err != nil {
<mask> httpError(w, http.StatusBadRequest, "json decode: %s", err)
<mask> return
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> remove func handleFilteringSetURL(w http.ResponseWriter, r *http.Request) {
</s> add func (f *Filtering) handleFilteringSetURL(w http.ResponseWriter, r *http.Request) { </s> remove func handleFilteringStatus(w http.ResponseWriter, r *http.Request) {
</s> add func (f *Filtering) handleFilteringStatus(w http.ResponseWriter, r *http.Request) { </s> remove func handleFilteringSetRules(w http.ResponseWriter, r *http.Request) {
</s> add func (f *Filtering) handleFilteringSetRules(w http.ResponseWriter, r *http.Request) { </s> remove func handleFilteringAddURL(w http.ResponseWriter, r *http.Request) {
</s> add func (f *Filtering) handleFilteringAddURL(w http.ResponseWriter, r *http.Request) { </s> remove userFilter := userFilter()
err = userFilter.save()
if err != nil {
log.Error("Couldn't save the user filter: %s", err)
}
</s> add </s> remove ok, err := f.update()
</s> add ok, err := f.update(&filt)
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/control_filtering.go
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> CanonName string `json:"cname"` // CNAME value
<mask> IPList []net.IP `json:"ip_addrs"` // list of IP addresses
<mask> }
<mask>
<mask> func handleCheckHost(w http.ResponseWriter, r *http.Request) {
<mask> q := r.URL.Query()
<mask> host := q.Get("name")
<mask>
<mask> setts := Context.dnsFilter.GetConfig()
<mask> setts.FilteringEnabled = true
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> remove func handleFilteringStatus(w http.ResponseWriter, r *http.Request) {
</s> add func (f *Filtering) handleFilteringStatus(w http.ResponseWriter, r *http.Request) { </s> remove func handleFilteringConfig(w http.ResponseWriter, r *http.Request) {
</s> add func (f *Filtering) handleFilteringConfig(w http.ResponseWriter, r *http.Request) { </s> remove func handleFilteringAddURL(w http.ResponseWriter, r *http.Request) {
</s> add func (f *Filtering) handleFilteringAddURL(w http.ResponseWriter, r *http.Request) { </s> remove func handleFilteringSetURL(w http.ResponseWriter, r *http.Request) {
</s> add func (f *Filtering) handleFilteringSetURL(w http.ResponseWriter, r *http.Request) { </s> remove func handleFilteringRemoveURL(w http.ResponseWriter, r *http.Request) {
</s> add func (f *Filtering) handleFilteringRemoveURL(w http.ResponseWriter, r *http.Request) { </s> remove func handleFilteringSetRules(w http.ResponseWriter, r *http.Request) {
</s> add func (f *Filtering) handleFilteringSetRules(w http.ResponseWriter, r *http.Request) {
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/control_filtering.go
|
keep keep keep keep replace replace replace replace replace replace replace replace replace keep keep keep keep keep
|
<mask> _, _ = w.Write(js)
<mask> }
<mask>
<mask> // RegisterFilteringHandlers - register handlers
<mask> func RegisterFilteringHandlers() {
<mask> httpRegister("GET", "/control/filtering/status", handleFilteringStatus)
<mask> httpRegister("POST", "/control/filtering/config", handleFilteringConfig)
<mask> httpRegister("POST", "/control/filtering/add_url", handleFilteringAddURL)
<mask> httpRegister("POST", "/control/filtering/remove_url", handleFilteringRemoveURL)
<mask> httpRegister("POST", "/control/filtering/set_url", handleFilteringSetURL)
<mask> httpRegister("POST", "/control/filtering/refresh", handleFilteringRefresh)
<mask> httpRegister("POST", "/control/filtering/set_rules", handleFilteringSetRules)
<mask> httpRegister("GET", "/control/filtering/check_host", handleCheckHost)
<mask> }
<mask>
<mask> func checkFiltersUpdateIntervalHours(i uint32) bool {
<mask> return i == 0 || i == 1 || i == 12 || i == 1*24 || i == 3*24 || i == 7*24
<mask> }
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> remove func loadFilters(array []filter) {
</s> add func (f *Filtering) loadFilters(array []filter) { </s> remove if updated {
err := uf.saveAndBackupOld()
if err != nil {
log.Printf("Failed to save the updated filter %d: %s", uf.ID, err)
continue
}
} else {
e := os.Chtimes(uf.Path(), uf.LastUpdated, uf.LastUpdated)
if e != nil {
log.Error("os.Chtimes(): %v", e)
}
}
</s> add </s> remove body, err := ioutil.ReadAll(resp.Body)
if err != nil {
log.Printf("Couldn't fetch filter contents from URL %s, skipping: %s", filter.URL, err)
return false, err
</s> add htmlTest := true
firstChunk := make([]byte, 4*1024)
firstChunkLen := 0
buf := make([]byte, 64*1024)
total := 0
for {
n, err := resp.Body.Read(buf)
total += n
if htmlTest {
// gather full buffer firstChunk and perform its data tests
num := util.MinInt(n, len(firstChunk)-firstChunkLen)
copied := copy(firstChunk[firstChunkLen:], buf[:num])
firstChunkLen += copied
if firstChunkLen == len(firstChunk) || err == io.EOF {
if !isPrintableText(firstChunk) {
return false, fmt.Errorf("Data contains non-printable characters")
}
s := strings.ToLower(string(firstChunk))
if strings.Index(s, "<html") >= 0 ||
strings.Index(s, "<!doctype") >= 0 {
return false, fmt.Errorf("Data is HTML, not plain text")
}
htmlTest = false
firstChunk = nil
}
}
_, err2 := tmpfile.Write(buf[:n])
if err2 != nil {
return false, err2
}
if err == io.EOF {
break
}
if err != nil {
log.Printf("Couldn't fetch filter contents from URL %s, skipping: %s", filter.URL, err)
return false, err
} </s> remove f := &(*filters)[i]
if f.URL != url {
</s> add filt := &(*filters)[i]
if filt.URL != url { </s> remove nUpdated, _ := refreshFilters(flags, true)
</s> add nUpdated, _ := f.refreshFilters(flags, true) </s> remove err = f.save()
assert.True(t, err == nil)
err = f.load()
</s> add err = Context.filters.load(&f)
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/control_filtering.go
|
keep keep keep keep replace keep keep keep keep keep
|
<mask>
<mask> Context.rdns = InitRDNS(Context.dnsServer, &Context.clients)
<mask> Context.whois = initWhois(&Context.clients)
<mask>
<mask> initFiltering()
<mask> return nil
<mask> }
<mask>
<mask> func isRunning() bool {
<mask> return Context.dnsServer != nil && Context.dnsServer.IsRunning()
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> remove return filter.save()
</s> add tmpfile.Close()
tmpfile = nil
return true, nil </s> remove refreshLock.Lock()
nUpdated, _ := refreshFiltersIfNecessary(flags)
refreshLock.Unlock()
refreshStatus = 0
</s> add f.refreshLock.Lock()
nUpdated, _ := f.refreshFiltersIfNecessary(flags)
f.refreshLock.Unlock()
f.refreshStatus = 0 </s> add tmpfile, err := ioutil.TempFile(filepath.Join(Context.getDataDir(), filterDir), "")
if err != nil {
return false, err
}
defer func() {
if tmpfile != nil {
_ = tmpfile.Close()
_ = os.Remove(tmpfile.Name())
}
}()
</s> remove filter.Data = body
</s> add </s> remove
err := file.SafeWrite(filterFilePath, filter.Data)
// update LastUpdated field after saving the file
filter.LastUpdated = filter.LastTimeUpdated()
return err
}
func (filter *filter) saveAndBackupOld() error {
filterFilePath := filter.Path()
err := os.Rename(filterFilePath, filterFilePath+".old")
if err != nil && !os.IsNotExist(err) {
return err
</s> add err = os.Rename(tmpfile.Name(), filterFilePath)
if err != nil {
return false, err </s> add // MinInt - return the minimum value
func MinInt(a, b int) int {
if a < b {
return a
}
return b
}
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/dns.go
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> return errorx.Decorate(err, "Couldn't start forwarding DNS server")
<mask> }
<mask>
<mask> Context.dnsFilter.Start()
<mask> startFiltering()
<mask> Context.stats.Start()
<mask> Context.queryLog.Start()
<mask>
<mask> const topClientsNumber = 100 // the number of clients to get
<mask> topClients := Context.stats.GetTopClientsIP(topClientsNumber)
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> remove func startFiltering() {
</s> add // Start - start the module
func (f *Filtering) Start() {
f.RegisterFilteringHandlers()
</s> remove go periodicallyRefreshFilters()
</s> add go f.periodicallyRefreshFilters()
}
// Close - close the module
func (f *Filtering) Close() { </s> add // Extract filter name and count number of rules
_, _ = tmpfile.Seek(0, io.SeekStart)
rulesCount, checksum, filterName := f.parseFilterContents(tmpfile) </s> remove func parseFilterContents(contents []byte) (int, string) {
data := string(contents)
</s> add func (f *Filtering) parseFilterContents(file io.Reader) (int, uint32, string) { </s> remove ok, err := f.update()
</s> add ok, err := f.update(&filt) </s> remove httpError(w, http.StatusBadRequest, "Couldn't fetch filter from url %s: %s", f.URL, err)
return
}
if f.RulesCount == 0 {
httpError(w, http.StatusBadRequest, "Filter at the url %s has no rules (maybe it points to blank page?)", f.URL)
</s> add httpError(w, http.StatusBadRequest, "Couldn't fetch filter from url %s: %s", filt.URL, err)
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/dns.go
|
keep add keep keep
|
<mask> }
<mask>
<mask> log.Debug("Closed all DNS modules")
<mask> }
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> remove startFiltering()
</s> add Context.filters.Start() </s> remove f.unload()
</s> add filt.unload() </s> add // MinInt - return the minimum value
func MinInt(a, b int) int {
if a < b {
return a
}
return b
} </s> remove err := filter.load()
</s> add err := f.load(filter) </s> remove uf.LastUpdated = now
</s> add </s> add Context.filters.Init()
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/dns.go
|
keep add keep keep keep keep
|
<mask>
<mask> import (
<mask> "fmt"
<mask> "hash/crc32"
<mask> "io"
<mask> "io/ioutil"
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> add "io" </s> remove "github.com/AdguardTeam/golibs/file"
</s> add </s> remove nextFilterID = time.Now().Unix() // semi-stable way to generate an unique ID
filterTitleRegexp = regexp.MustCompile(`^! Title: +(.*)$`)
</s> add nextFilterID = time.Now().Unix() // semi-stable way to generate an unique ID
)
// type FilteringConf struct {
// BlockLists []filter
// AllowLists []filter
// UserRules []string
// }
// Filtering - module object
type Filtering struct {
// conf FilteringConf </s> add // MinInt - return the minimum value
func MinInt(a, b int) int {
if a < b {
return a
}
return b
} </s> remove go periodicallyRefreshFilters()
</s> add go f.periodicallyRefreshFilters()
}
// Close - close the module
func (f *Filtering) Close() { </s> remove startFiltering()
</s> add Context.filters.Start()
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/filter.go
|
keep add keep keep keep keep keep keep
|
<mask> "fmt"
<mask> "hash/crc32"
<mask> "io/ioutil"
<mask> "os"
<mask> "path/filepath"
<mask> "regexp"
<mask> "strconv"
<mask> "strings"
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> add "bufio" </s> remove // ---------------------
// general helpers
// ---------------------
</s> add </s> add // MinInt - return the minimum value
func MinInt(a, b int) int {
if a < b {
return a
}
return b
} </s> remove go periodicallyRefreshFilters()
</s> add go f.periodicallyRefreshFilters()
}
// Close - close the module
func (f *Filtering) Close() { </s> remove startFiltering()
</s> add Context.filters.Start() </s> add Context.filters.Close()
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/filter.go
|
keep keep keep replace keep keep keep keep replace replace keep keep
|
<mask>
<mask> "github.com/AdguardTeam/AdGuardHome/dnsfilter"
<mask> "github.com/AdguardTeam/AdGuardHome/util"
<mask> "github.com/AdguardTeam/golibs/file"
<mask> "github.com/AdguardTeam/golibs/log"
<mask> )
<mask>
<mask> var (
<mask> nextFilterID = time.Now().Unix() // semi-stable way to generate an unique ID
<mask> filterTitleRegexp = regexp.MustCompile(`^! Title: +(.*)$`)
<mask> refreshStatus uint32 // 0:none; 1:in progress
<mask> refreshLock sync.Mutex
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> remove )
</s> add filterTitleRegexp *regexp.Regexp
} </s> remove func initFiltering() {
loadFilters(config.Filters)
loadFilters(config.WhitelistFilters)
</s> add // Init - initialize the module
func (f *Filtering) Init() {
f.filterTitleRegexp = regexp.MustCompile(`^! Title: +(.*)$`)
_ = os.MkdirAll(filepath.Join(Context.getDataDir(), filterDir), 0755)
f.loadFilters(config.Filters)
f.loadFilters(config.WhitelistFilters) </s> remove func refreshFiltersArray(filters *[]filter, force bool) (int, []filter, []bool, bool) {
</s> add func (f *Filtering) refreshFiltersArray(filters *[]filter, force bool) (int, []filter, []bool, bool) { </s> remove refreshLock.Lock()
nUpdated, _ := refreshFiltersIfNecessary(flags)
refreshLock.Unlock()
refreshStatus = 0
</s> add f.refreshLock.Lock()
nUpdated, _ := f.refreshFiltersIfNecessary(flags)
f.refreshLock.Unlock()
f.refreshStatus = 0 </s> remove filter.Data = nil
</s> add
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/filter.go
|
keep keep keep replace keep replace replace replace keep
|
<mask> filterTitleRegexp = regexp.MustCompile(`^! Title: +(.*)$`)
<mask> refreshStatus uint32 // 0:none; 1:in progress
<mask> refreshLock sync.Mutex
<mask> )
<mask>
<mask> func initFiltering() {
<mask> loadFilters(config.Filters)
<mask> loadFilters(config.WhitelistFilters)
<mask> deduplicateFilters()
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> remove nextFilterID = time.Now().Unix() // semi-stable way to generate an unique ID
filterTitleRegexp = regexp.MustCompile(`^! Title: +(.*)$`)
</s> add nextFilterID = time.Now().Unix() // semi-stable way to generate an unique ID
)
// type FilteringConf struct {
// BlockLists []filter
// AllowLists []filter
// UserRules []string
// }
// Filtering - module object
type Filtering struct {
// conf FilteringConf </s> remove initFiltering()
</s> add Context.filters.Init() </s> remove // ---------------------
// general helpers
// ---------------------
</s> add </s> remove func refreshFiltersArray(filters *[]filter, force bool) (int, []filter, []bool, bool) {
</s> add func (f *Filtering) refreshFiltersArray(filters *[]filter, force bool) (int, []filter, []bool, bool) { </s> remove "github.com/AdguardTeam/golibs/file"
</s> add
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/filter.go
|
keep replace keep keep keep replace keep keep keep
|
<mask>
<mask> func startFiltering() {
<mask> // Here we should start updating filters,
<mask> // but currently we can't wake up the periodic task to do so.
<mask> // So for now we just start this periodic task from here.
<mask> go periodicallyRefreshFilters()
<mask> }
<mask>
<mask> func defaultFilters() []filter {
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> add // . Store downloaded data in a temporary file inside data/filters directory </s> remove startFiltering()
</s> add Context.filters.Start() </s> remove // . rename the old file (1.txt -> 1.txt.old)
// . store the new data on disk (1.txt)
</s> add // . rename the temporary file (<temp> -> 1.txt)
// Note that this method works only on UNIX.
// On Windows we don't pass files to dnsfilter - we pass the whole data. </s> remove func periodicallyRefreshFilters() {
</s> add func (f *Filtering) periodicallyRefreshFilters() { </s> remove nUpdated, _ := refreshFilters(flags, true)
</s> add nUpdated, _ := f.refreshFilters(flags, true)
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/filter.go
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> )
<mask>
<mask> // Update properties for a filter specified by its URL
<mask> // Return status* flags.
<mask> func filterSetProperties(url string, newf filter, whitelist bool) int {
<mask> r := 0
<mask> config.Lock()
<mask> defer config.Unlock()
<mask>
<mask> filters := &config.Filters
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> remove func refreshFiltersIfNecessary(flags int) (int, bool) {
</s> add func (f *Filtering) refreshFiltersIfNecessary(flags int) (int, bool) { </s> remove // . Remove the old filter files (1.txt.old)
</s> add </s> remove func loadFilters(array []filter) {
</s> add func (f *Filtering) loadFilters(array []filter) { </s> remove func periodicallyRefreshFilters() {
</s> add func (f *Filtering) periodicallyRefreshFilters() { </s> remove func refreshFilters(flags int, important bool) (int, error) {
set := atomic.CompareAndSwapUint32(&refreshStatus, 0, 1)
</s> add func (f *Filtering) refreshFilters(flags int, important bool) (int, error) {
set := atomic.CompareAndSwapUint32(&f.refreshStatus, 0, 1) </s> remove // Perform upgrade on a filter
func (filter *filter) update() (bool, error) {
</s> add func (f *Filtering) updateIntl(filter *filter) (bool, error) {
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/filter.go
|
keep keep keep replace replace keep keep keep keep replace replace keep keep
|
<mask> }
<mask>
<mask> for i := range *filters {
<mask> f := &(*filters)[i]
<mask> if f.URL != url {
<mask> continue
<mask> }
<mask>
<mask> log.Debug("filter: set properties: %s: {%s %s %v}",
<mask> f.URL, newf.Name, newf.URL, newf.Enabled)
<mask> f.Name = newf.Name
<mask>
<mask> if f.URL != newf.URL {
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> remove if f.URL != newf.URL {
</s> add if filt.URL != newf.URL { </s> remove if updated {
err := uf.saveAndBackupOld()
if err != nil {
log.Printf("Failed to save the updated filter %d: %s", uf.ID, err)
continue
}
} else {
e := os.Chtimes(uf.Path(), uf.LastUpdated, uf.LastUpdated)
if e != nil {
log.Error("os.Chtimes(): %v", e)
}
}
</s> add </s> remove updated, err := uf.update()
</s> add updated, err := f.update(uf) </s> remove ok, err := f.update()
</s> add ok, err := f.update(&filt) </s> remove httpError(w, http.StatusBadRequest, "Couldn't fetch filter from url %s: %s", f.URL, err)
return
}
if f.RulesCount == 0 {
httpError(w, http.StatusBadRequest, "Filter at the url %s has no rules (maybe it points to blank page?)", f.URL)
</s> add httpError(w, http.StatusBadRequest, "Couldn't fetch filter from url %s: %s", filt.URL, err)
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/filter.go
|
keep keep keep replace keep keep keep keep replace replace replace replace replace keep keep keep keep
|
<mask> f.URL, newf.Name, newf.URL, newf.Enabled)
<mask> f.Name = newf.Name
<mask>
<mask> if f.URL != newf.URL {
<mask> r |= statusURLChanged | statusUpdateRequired
<mask> if filterExistsNoLock(newf.URL) {
<mask> return statusURLExists
<mask> }
<mask> f.URL = newf.URL
<mask> f.unload()
<mask> f.LastUpdated = time.Time{}
<mask> f.checksum = 0
<mask> f.RulesCount = 0
<mask> }
<mask>
<mask> if f.Enabled != newf.Enabled {
<mask> r |= statusEnabledChanged
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> remove f.URL, newf.Name, newf.URL, newf.Enabled)
f.Name = newf.Name
</s> add filt.URL, newf.Name, newf.URL, newf.Enabled)
filt.Name = newf.Name </s> remove if f.Enabled != newf.Enabled {
</s> add if filt.Enabled != newf.Enabled { </s> remove f.LastUpdated = time.Time{}
f.checksum = 0
f.RulesCount = 0
</s> add filt.LastUpdated = time.Time{}
filt.checksum = 0
filt.RulesCount = 0 </s> remove e := f.load()
</s> add e := f.load(filt) </s> remove f.Enabled = newf.Enabled
if f.Enabled {
</s> add filt.Enabled = newf.Enabled
if filt.Enabled {
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/filter.go
|
keep keep replace keep replace replace keep keep keep
|
<mask> }
<mask>
<mask> if f.Enabled != newf.Enabled {
<mask> r |= statusEnabledChanged
<mask> f.Enabled = newf.Enabled
<mask> if f.Enabled {
<mask> if (r & statusURLChanged) == 0 {
<mask> e := f.load()
<mask> if e != nil {
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> remove e := f.load()
</s> add e := f.load(filt) </s> remove f.URL = newf.URL
f.unload()
f.LastUpdated = time.Time{}
f.checksum = 0
f.RulesCount = 0
</s> add filt.URL = newf.URL
filt.unload()
filt.LastUpdated = time.Time{}
filt.checksum = 0
filt.RulesCount = 0 </s> remove f.LastUpdated = time.Time{}
f.checksum = 0
f.RulesCount = 0
</s> add filt.LastUpdated = time.Time{}
filt.checksum = 0
filt.RulesCount = 0 </s> remove if updated {
err := uf.saveAndBackupOld()
if err != nil {
log.Printf("Failed to save the updated filter %d: %s", uf.ID, err)
continue
}
} else {
e := os.Chtimes(uf.Path(), uf.LastUpdated, uf.LastUpdated)
if e != nil {
log.Error("os.Chtimes(): %v", e)
}
}
</s> add </s> remove updateCount, updateFilters, updateFlags, netError = refreshFiltersArray(&config.Filters, force)
</s> add updateCount, updateFilters, updateFlags, netError = f.refreshFiltersArray(&config.Filters, force)
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/filter.go
|
keep keep replace keep keep keep replace replace replace keep keep
|
<mask> if f.Enabled {
<mask> if (r & statusURLChanged) == 0 {
<mask> e := f.load()
<mask> if e != nil {
<mask> // This isn't a fatal error,
<mask> // because it may occur when someone removes the file from disk.
<mask> f.LastUpdated = time.Time{}
<mask> f.checksum = 0
<mask> f.RulesCount = 0
<mask> r |= statusUpdateRequired
<mask> }
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> remove f.Enabled = newf.Enabled
if f.Enabled {
</s> add filt.Enabled = newf.Enabled
if filt.Enabled { </s> remove if f.Enabled != newf.Enabled {
</s> add if filt.Enabled != newf.Enabled { </s> remove f.URL = newf.URL
f.unload()
f.LastUpdated = time.Time{}
f.checksum = 0
f.RulesCount = 0
</s> add filt.URL = newf.URL
filt.unload()
filt.LastUpdated = time.Time{}
filt.checksum = 0
filt.RulesCount = 0 </s> remove ok, err := f.update()
</s> add ok, err := f.update(&filt) </s> remove updateCount, updateFilters, updateFlags, netError = refreshFiltersArray(&config.Filters, force)
</s> add updateCount, updateFilters, updateFlags, netError = f.refreshFiltersArray(&config.Filters, force)
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/filter.go
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> r |= statusUpdateRequired
<mask> }
<mask> }
<mask> } else {
<mask> f.unload()
<mask> }
<mask> }
<mask>
<mask> return r | statusFound
<mask> }
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> remove f.URL = newf.URL
f.unload()
f.LastUpdated = time.Time{}
f.checksum = 0
f.RulesCount = 0
</s> add filt.URL = newf.URL
filt.unload()
filt.LastUpdated = time.Time{}
filt.checksum = 0
filt.RulesCount = 0 </s> remove f.LastUpdated = time.Time{}
f.checksum = 0
f.RulesCount = 0
</s> add filt.LastUpdated = time.Time{}
filt.checksum = 0
filt.RulesCount = 0 </s> remove if f.URL != newf.URL {
</s> add if filt.URL != newf.URL { </s> remove f.URL, newf.Name, newf.URL, newf.Enabled)
f.Name = newf.Name
</s> add filt.URL, newf.Name, newf.URL, newf.Enabled)
filt.Name = newf.Name </s> remove func handleFilteringSetRules(w http.ResponseWriter, r *http.Request) {
</s> add func (f *Filtering) handleFilteringSetRules(w http.ResponseWriter, r *http.Request) { </s> remove func handleFilteringRefresh(w http.ResponseWriter, r *http.Request) {
</s> add func (f *Filtering) handleFilteringRefresh(w http.ResponseWriter, r *http.Request) {
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/filter.go
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> }
<mask>
<mask> // Load filters from the disk
<mask> // And if any filter has zero ID, assign a new one
<mask> func loadFilters(array []filter) {
<mask> for i := range array {
<mask> filter := &array[i] // otherwise we're operating on a copy
<mask> if filter.ID == 0 {
<mask> filter.ID = assignUniqueFilterID()
<mask> }
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> remove return rulesCount, name
</s> add return rulesCount, checksum, name
}
// Perform upgrade on a filter and update LastUpdated value
func (f *Filtering) update(filter *filter) (bool, error) {
b, err := f.updateIntl(filter)
filter.LastUpdated = time.Now()
if !b {
e := os.Chtimes(filter.Path(), filter.LastUpdated, filter.LastUpdated)
if e != nil {
log.Error("os.Chtimes(): %v", e)
}
}
return b, err </s> remove ok, err := f.update()
</s> add ok, err := f.update(&filt) </s> remove func periodicallyRefreshFilters() {
</s> add func (f *Filtering) periodicallyRefreshFilters() { </s> remove f := &(*filters)[i]
if f.URL != url {
</s> add filt := &(*filters)[i]
if filt.URL != url { </s> remove if updated {
err := uf.saveAndBackupOld()
if err != nil {
log.Printf("Failed to save the updated filter %d: %s", uf.ID, err)
continue
}
} else {
e := os.Chtimes(uf.Path(), uf.LastUpdated, uf.LastUpdated)
if e != nil {
log.Error("os.Chtimes(): %v", e)
}
}
</s> add </s> remove f.Enabled = newf.Enabled
if f.Enabled {
</s> add filt.Enabled = newf.Enabled
if filt.Enabled {
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/filter.go
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> // No need to load a filter that is not enabled
<mask> continue
<mask> }
<mask>
<mask> err := filter.load()
<mask> if err != nil {
<mask> log.Error("Couldn't load filter %d contents due to %s", filter.ID, err)
<mask> }
<mask> }
<mask> }
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> remove httpError(w, http.StatusBadRequest, "Filter at the url %s is invalid (maybe it points to blank page?)", f.URL)
return
}
// Save the filter contents
err = f.save()
if err != nil {
httpError(w, http.StatusBadRequest, "Failed to save filter %d due to %s", f.ID, err)
</s> add httpError(w, http.StatusBadRequest, "Filter at the url %s is invalid (maybe it points to blank page?)", filt.URL) </s> remove
return true, nil
}
// saves filter contents to the file in dataDir
// This method is safe to call during filters update,
// because it creates a new file and then renames it,
// so the currently opened file descriptors to the old filter file remain valid.
func (filter *filter) save() error {
</s> add </s> remove userFilter := userFilter()
err = userFilter.save()
if err != nil {
log.Error("Couldn't save the user filter: %s", err)
return err
}
</s> add </s> remove
err := file.SafeWrite(filterFilePath, filter.Data)
// update LastUpdated field after saving the file
filter.LastUpdated = filter.LastTimeUpdated()
return err
}
func (filter *filter) saveAndBackupOld() error {
filterFilePath := filter.Path()
err := os.Rename(filterFilePath, filterFilePath+".old")
if err != nil && !os.IsNotExist(err) {
return err
</s> add err = os.Rename(tmpfile.Name(), filterFilePath)
if err != nil {
return false, err </s> remove body, err := ioutil.ReadAll(resp.Body)
if err != nil {
log.Printf("Couldn't fetch filter contents from URL %s, skipping: %s", filter.URL, err)
return false, err
</s> add htmlTest := true
firstChunk := make([]byte, 4*1024)
firstChunkLen := 0
buf := make([]byte, 64*1024)
total := 0
for {
n, err := resp.Body.Read(buf)
total += n
if htmlTest {
// gather full buffer firstChunk and perform its data tests
num := util.MinInt(n, len(firstChunk)-firstChunkLen)
copied := copy(firstChunk[firstChunkLen:], buf[:num])
firstChunkLen += copied
if firstChunkLen == len(firstChunk) || err == io.EOF {
if !isPrintableText(firstChunk) {
return false, fmt.Errorf("Data contains non-printable characters")
}
s := strings.ToLower(string(firstChunk))
if strings.Index(s, "<html") >= 0 ||
strings.Index(s, "<!doctype") >= 0 {
return false, fmt.Errorf("Data is HTML, not plain text")
}
htmlTest = false
firstChunk = nil
}
}
_, err2 := tmpfile.Write(buf[:n])
if err2 != nil {
return false, err2
}
if err == io.EOF {
break
}
if err != nil {
log.Printf("Couldn't fetch filter contents from URL %s, skipping: %s", filter.URL, err)
return false, err
} </s> remove return rulesCount, name
</s> add return rulesCount, checksum, name
}
// Perform upgrade on a filter and update LastUpdated value
func (f *Filtering) update(filter *filter) (bool, error) {
b, err := f.updateIntl(filter)
filter.LastUpdated = time.Now()
if !b {
e := os.Chtimes(filter.Path(), filter.LastUpdated, filter.LastUpdated)
if e != nil {
log.Error("os.Chtimes(): %v", e)
}
}
return b, err
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/filter.go
|
keep replace keep keep keep keep replace replace replace replace replace keep keep keep keep
|
<mask> // Sets up a timer that will be checking for filters updates periodically
<mask> func periodicallyRefreshFilters() {
<mask> const maxInterval = 1 * 60 * 60
<mask> intval := 5 // use a dynamically increasing time interval
<mask> for {
<mask> isNetworkErr := false
<mask> if config.DNS.FiltersUpdateIntervalHours != 0 && atomic.CompareAndSwapUint32(&refreshStatus, 0, 1) {
<mask> refreshLock.Lock()
<mask> _, isNetworkErr = refreshFiltersIfNecessary(FilterRefreshBlocklists | FilterRefreshAllowlists)
<mask> refreshLock.Unlock()
<mask> refreshStatus = 0
<mask> if !isNetworkErr {
<mask> intval = maxInterval
<mask> }
<mask> }
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> remove func refreshFilters(flags int, important bool) (int, error) {
set := atomic.CompareAndSwapUint32(&refreshStatus, 0, 1)
</s> add func (f *Filtering) refreshFilters(flags int, important bool) (int, error) {
set := atomic.CompareAndSwapUint32(&f.refreshStatus, 0, 1) </s> remove refreshLock.Lock()
nUpdated, _ := refreshFiltersIfNecessary(flags)
refreshLock.Unlock()
refreshStatus = 0
</s> add f.refreshLock.Lock()
nUpdated, _ := f.refreshFiltersIfNecessary(flags)
f.refreshLock.Unlock()
f.refreshStatus = 0 </s> remove func loadFilters(array []filter) {
</s> add func (f *Filtering) loadFilters(array []filter) { </s> remove // Count lines in the filter
for len(data) != 0 {
line := util.SplitNext(&data, '\n')
</s> add checksum = crc32.Update(checksum, crc32.IEEETable, []byte(line))
line = strings.TrimSpace(line) </s> remove func handleFilteringStatus(w http.ResponseWriter, r *http.Request) {
</s> add func (f *Filtering) handleFilteringStatus(w http.ResponseWriter, r *http.Request) {
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/filter.go
|
keep keep keep keep replace replace keep keep keep keep replace replace replace replace keep keep keep
|
<mask> // Refresh filters
<mask> // flags: FilterRefresh*
<mask> // important:
<mask> // TRUE: ignore the fact that we're currently updating the filters
<mask> func refreshFilters(flags int, important bool) (int, error) {
<mask> set := atomic.CompareAndSwapUint32(&refreshStatus, 0, 1)
<mask> if !important && !set {
<mask> return 0, fmt.Errorf("Filters update procedure is already running")
<mask> }
<mask>
<mask> refreshLock.Lock()
<mask> nUpdated, _ := refreshFiltersIfNecessary(flags)
<mask> refreshLock.Unlock()
<mask> refreshStatus = 0
<mask> return nUpdated, nil
<mask> }
<mask>
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> remove if config.DNS.FiltersUpdateIntervalHours != 0 && atomic.CompareAndSwapUint32(&refreshStatus, 0, 1) {
refreshLock.Lock()
_, isNetworkErr = refreshFiltersIfNecessary(FilterRefreshBlocklists | FilterRefreshAllowlists)
refreshLock.Unlock()
refreshStatus = 0
</s> add if config.DNS.FiltersUpdateIntervalHours != 0 && atomic.CompareAndSwapUint32(&f.refreshStatus, 0, 1) {
f.refreshLock.Lock()
_, isNetworkErr = f.refreshFiltersIfNecessary(FilterRefreshBlocklists | FilterRefreshAllowlists)
f.refreshLock.Unlock()
f.refreshStatus = 0 </s> remove func periodicallyRefreshFilters() {
</s> add func (f *Filtering) periodicallyRefreshFilters() { </s> remove func refreshFiltersArray(filters *[]filter, force bool) (int, []filter, []bool, bool) {
</s> add func (f *Filtering) refreshFiltersArray(filters *[]filter, force bool) (int, []filter, []bool, bool) { </s> remove nUpdated, _ := refreshFilters(flags, true)
</s> add nUpdated, _ := f.refreshFilters(flags, true) </s> remove func loadFilters(array []filter) {
</s> add func (f *Filtering) loadFilters(array []filter) {
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/filter.go
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> refreshStatus = 0
<mask> return nUpdated, nil
<mask> }
<mask>
<mask> func refreshFiltersArray(filters *[]filter, force bool) (int, []filter, []bool, bool) {
<mask> var updateFilters []filter
<mask> var updateFlags []bool // 'true' if filter data has changed
<mask>
<mask> now := time.Now()
<mask> config.RLock()
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> remove refreshLock.Lock()
nUpdated, _ := refreshFiltersIfNecessary(flags)
refreshLock.Unlock()
refreshStatus = 0
</s> add f.refreshLock.Lock()
nUpdated, _ := f.refreshFiltersIfNecessary(flags)
f.refreshLock.Unlock()
f.refreshStatus = 0 </s> remove func refreshFiltersIfNecessary(flags int) (int, bool) {
</s> add func (f *Filtering) refreshFiltersIfNecessary(flags int) (int, bool) { </s> remove updateCountW, updateFiltersW, updateFlagsW, netErrorW = refreshFiltersArray(&config.WhitelistFilters, force)
</s> add updateCountW, updateFiltersW, updateFlagsW, netErrorW = f.refreshFiltersArray(&config.WhitelistFilters, force) </s> remove updateCount, updateFilters, updateFlags, netError = refreshFiltersArray(&config.Filters, force)
</s> add updateCount, updateFilters, updateFlags, netError = f.refreshFiltersArray(&config.Filters, force) </s> remove func refreshFilters(flags int, important bool) (int, error) {
set := atomic.CompareAndSwapUint32(&refreshStatus, 0, 1)
</s> add func (f *Filtering) refreshFilters(flags int, important bool) (int, error) {
set := atomic.CompareAndSwapUint32(&f.refreshStatus, 0, 1) </s> remove nUpdated, _ := refreshFilters(flags, true)
</s> add nUpdated, _ := f.refreshFilters(flags, true)
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/filter.go
|
keep keep keep keep replace keep keep keep keep keep
|
<mask>
<mask> nfail := 0
<mask> for i := range updateFilters {
<mask> uf := &updateFilters[i]
<mask> updated, err := uf.update()
<mask> updateFlags = append(updateFlags, updated)
<mask> if err != nil {
<mask> nfail++
<mask> log.Printf("Failed to update filter %s: %s\n", uf.URL, err)
<mask> continue
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> remove uf.LastUpdated = now
</s> add </s> remove if updated {
err := uf.saveAndBackupOld()
if err != nil {
log.Printf("Failed to save the updated filter %d: %s", uf.ID, err)
continue
}
} else {
e := os.Chtimes(uf.Path(), uf.LastUpdated, uf.LastUpdated)
if e != nil {
log.Error("os.Chtimes(): %v", e)
}
}
</s> add </s> remove f := &(*filters)[i]
if f.URL != url {
</s> add filt := &(*filters)[i]
if filt.URL != url { </s> remove updateCountW, updateFiltersW, updateFlagsW, netErrorW = refreshFiltersArray(&config.WhitelistFilters, force)
</s> add updateCountW, updateFiltersW, updateFlagsW, netErrorW = f.refreshFiltersArray(&config.WhitelistFilters, force) </s> remove ok, err := f.update()
</s> add ok, err := f.update(&filt) </s> remove // Count lines in the filter
for len(data) != 0 {
line := util.SplitNext(&data, '\n')
</s> add checksum = crc32.Update(checksum, crc32.IEEETable, []byte(line))
line = strings.TrimSpace(line)
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/filter.go
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> nfail++
<mask> log.Printf("Failed to update filter %s: %s\n", uf.URL, err)
<mask> continue
<mask> }
<mask> uf.LastUpdated = now
<mask> }
<mask>
<mask> if nfail == len(updateFilters) {
<mask> return 0, nil, nil, true
<mask> }
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> remove updated, err := uf.update()
</s> add updated, err := f.update(uf) </s> remove m := filterTitleRegexp.FindAllStringSubmatch(line, -1)
</s> add m := f.filterTitleRegexp.FindAllStringSubmatch(line, -1) </s> remove ok, err := f.update()
assert.True(t, ok && err == nil)
</s> add ok, err := Context.filters.update(&f)
assert.Equal(t, nil, err)
assert.True(t, ok) </s> remove ok, err := f.update()
</s> add ok, err := f.update(&filt) </s> remove if updated {
err := uf.saveAndBackupOld()
if err != nil {
log.Printf("Failed to save the updated filter %d: %s", uf.ID, err)
continue
}
} else {
e := os.Chtimes(uf.Path(), uf.LastUpdated, uf.LastUpdated)
if e != nil {
log.Error("os.Chtimes(): %v", e)
}
}
</s> add </s> remove httpError(w, http.StatusBadRequest, "Couldn't fetch filter from url %s: %s", f.URL, err)
return
}
if f.RulesCount == 0 {
httpError(w, http.StatusBadRequest, "Filter at the url %s has no rules (maybe it points to blank page?)", f.URL)
</s> add httpError(w, http.StatusBadRequest, "Couldn't fetch filter from url %s: %s", filt.URL, err)
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/filter.go
|
keep keep keep keep replace replace replace replace replace replace replace replace replace replace replace replace keep keep keep keep keep
|
<mask> updateCount := 0
<mask> for i := range updateFilters {
<mask> uf := &updateFilters[i]
<mask> updated := updateFlags[i]
<mask> if updated {
<mask> err := uf.saveAndBackupOld()
<mask> if err != nil {
<mask> log.Printf("Failed to save the updated filter %d: %s", uf.ID, err)
<mask> continue
<mask> }
<mask> } else {
<mask> e := os.Chtimes(uf.Path(), uf.LastUpdated, uf.LastUpdated)
<mask> if e != nil {
<mask> log.Error("os.Chtimes(): %v", e)
<mask> }
<mask> }
<mask>
<mask> config.Lock()
<mask> for k := range *filters {
<mask> f := &(*filters)[k]
<mask> if f.ID != uf.ID || f.URL != uf.URL {
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> remove updated, err := uf.update()
</s> add updated, err := f.update(uf) </s> remove f := &(*filters)[i]
if f.URL != url {
</s> add filt := &(*filters)[i]
if filt.URL != url { </s> remove return rulesCount, name
</s> add return rulesCount, checksum, name
}
// Perform upgrade on a filter and update LastUpdated value
func (f *Filtering) update(filter *filter) (bool, error) {
b, err := f.updateIntl(filter)
filter.LastUpdated = time.Now()
if !b {
e := os.Chtimes(filter.Path(), filter.LastUpdated, filter.LastUpdated)
if e != nil {
log.Error("os.Chtimes(): %v", e)
}
}
return b, err </s> remove body, err := ioutil.ReadAll(resp.Body)
if err != nil {
log.Printf("Couldn't fetch filter contents from URL %s, skipping: %s", filter.URL, err)
return false, err
</s> add htmlTest := true
firstChunk := make([]byte, 4*1024)
firstChunkLen := 0
buf := make([]byte, 64*1024)
total := 0
for {
n, err := resp.Body.Read(buf)
total += n
if htmlTest {
// gather full buffer firstChunk and perform its data tests
num := util.MinInt(n, len(firstChunk)-firstChunkLen)
copied := copy(firstChunk[firstChunkLen:], buf[:num])
firstChunkLen += copied
if firstChunkLen == len(firstChunk) || err == io.EOF {
if !isPrintableText(firstChunk) {
return false, fmt.Errorf("Data contains non-printable characters")
}
s := strings.ToLower(string(firstChunk))
if strings.Index(s, "<html") >= 0 ||
strings.Index(s, "<!doctype") >= 0 {
return false, fmt.Errorf("Data is HTML, not plain text")
}
htmlTest = false
firstChunk = nil
}
}
_, err2 := tmpfile.Write(buf[:n])
if err2 != nil {
return false, err2
}
if err == io.EOF {
break
}
if err != nil {
log.Printf("Couldn't fetch filter contents from URL %s, skipping: %s", filter.URL, err)
return false, err
} </s> remove func loadFilters(array []filter) {
</s> add func (f *Filtering) loadFilters(array []filter) { </s> remove ok, err := f.update()
</s> add ok, err := f.update(&filt)
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/filter.go
|
keep keep keep keep replace keep keep keep keep keep
|
<mask>
<mask> log.Info("Updated filter #%d. Rules: %d -> %d",
<mask> f.ID, f.RulesCount, uf.RulesCount)
<mask> f.Name = uf.Name
<mask> f.Data = nil
<mask> f.RulesCount = uf.RulesCount
<mask> f.checksum = uf.checksum
<mask> updateCount++
<mask> }
<mask> config.Unlock()
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> remove f.URL = newf.URL
f.unload()
f.LastUpdated = time.Time{}
f.checksum = 0
f.RulesCount = 0
</s> add filt.URL = newf.URL
filt.unload()
filt.LastUpdated = time.Time{}
filt.checksum = 0
filt.RulesCount = 0 </s> remove f.LastUpdated = time.Time{}
f.checksum = 0
f.RulesCount = 0
</s> add filt.LastUpdated = time.Time{}
filt.checksum = 0
filt.RulesCount = 0 </s> remove if f.Enabled != newf.Enabled {
</s> add if filt.Enabled != newf.Enabled { </s> remove filter.Data = nil
filter.checksum = crc32.ChecksumIEEE(filterFileContents)
</s> add filter.checksum = checksum </s> remove log.Tracef("File %s, id %d, length %d", filterFilePath, filter.ID, len(filterFileContents))
rulesCount, _ := parseFilterContents(filterFileContents)
</s> add log.Tracef("File %s, id %d, length %d",
filterFilePath, filter.ID, st.Size())
rulesCount, checksum, _ := f.parseFilterContents(file) </s> remove var firstChunk []byte
if len(body) <= 4096 {
firstChunk = body
} else {
firstChunk = body[:4096]
}
if !isPrintableText(firstChunk) {
return false, fmt.Errorf("Data contains non-printable characters")
}
s := strings.ToLower(string(firstChunk))
if strings.Index(s, "<html") >= 0 ||
strings.Index(s, "<!doctype") >= 0 {
return false, fmt.Errorf("Data is HTML, not plain text")
}
// Extract filter name and count number of rules
rulesCount, filterName := parseFilterContents(body)
log.Printf("Filter %d has been updated: %d bytes, %d rules", filter.ID, len(body), rulesCount)
</s> add log.Printf("Filter %d has been updated: %d bytes, %d rules",
filter.ID, total, rulesCount)
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/filter.go
|
keep keep add keep keep keep keep keep keep
|
<mask> // Algorithm:
<mask> // . Get the list of filters to be updated
<mask> // . For each filter run the download and checksum check operation
<mask> // . For each filter:
<mask> // . If filter data hasn't changed, just set new update time on file
<mask> // . If filter data has changed:
<mask> // . rename the temporary file (<temp> -> 1.txt)
<mask> // Note that this method works only on UNIX.
<mask> // On Windows we don't pass files to dnsfilter - we pass the whole data.
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> remove // . rename the old file (1.txt -> 1.txt.old)
// . store the new data on disk (1.txt)
</s> add // . rename the temporary file (<temp> -> 1.txt)
// Note that this method works only on UNIX.
// On Windows we don't pass files to dnsfilter - we pass the whole data. </s> remove // . Remove the old filter files (1.txt.old)
</s> add </s> remove func refreshFiltersIfNecessary(flags int) (int, bool) {
</s> add func (f *Filtering) refreshFiltersIfNecessary(flags int) (int, bool) { </s> remove
return true, nil
}
// saves filter contents to the file in dataDir
// This method is safe to call during filters update,
// because it creates a new file and then renames it,
// so the currently opened file descriptors to the old filter file remain valid.
func (filter *filter) save() error {
</s> add </s> remove func startFiltering() {
</s> add // Start - start the module
func (f *Filtering) Start() {
f.RegisterFilteringHandlers()
</s> remove go periodicallyRefreshFilters()
</s> add go f.periodicallyRefreshFilters()
}
// Close - close the module
func (f *Filtering) Close() {
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/filter.go
|
keep replace replace keep keep replace
|
<mask> // . If filter data has changed:
<mask> // . rename the old file (1.txt -> 1.txt.old)
<mask> // . store the new data on disk (1.txt)
<mask> // . Pass new filters to dnsfilter object - it analyzes new data while the old filters are still active
<mask> // . dnsfilter activates new filters
<mask> // . Remove the old filter files (1.txt.old)
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> add // . Store downloaded data in a temporary file inside data/filters directory </s> remove func refreshFiltersIfNecessary(flags int) (int, bool) {
</s> add func (f *Filtering) refreshFiltersIfNecessary(flags int) (int, bool) { </s> remove
return true, nil
}
// saves filter contents to the file in dataDir
// This method is safe to call during filters update,
// because it creates a new file and then renames it,
// so the currently opened file descriptors to the old filter file remain valid.
func (filter *filter) save() error {
</s> add </s> remove func loadFilters(array []filter) {
</s> add func (f *Filtering) loadFilters(array []filter) { </s> remove httpError(w, http.StatusBadRequest, "Filter at the url %s is invalid (maybe it points to blank page?)", f.URL)
return
}
// Save the filter contents
err = f.save()
if err != nil {
httpError(w, http.StatusBadRequest, "Failed to save filter %d due to %s", f.ID, err)
</s> add httpError(w, http.StatusBadRequest, "Filter at the url %s is invalid (maybe it points to blank page?)", filt.URL)
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/filter.go
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> // . Remove the old filter files (1.txt.old)
<mask> //
<mask> // Return the number of updated filters
<mask> // Return TRUE - there was a network error and nothing could be updated
<mask> func refreshFiltersIfNecessary(flags int) (int, bool) {
<mask> log.Debug("Filters: updating...")
<mask>
<mask> updateCount := 0
<mask> var updateFilters []filter
<mask> var updateFlags []bool
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> remove // . Remove the old filter files (1.txt.old)
</s> add </s> remove // . rename the old file (1.txt -> 1.txt.old)
// . store the new data on disk (1.txt)
</s> add // . rename the temporary file (<temp> -> 1.txt)
// Note that this method works only on UNIX.
// On Windows we don't pass files to dnsfilter - we pass the whole data. </s> remove func refreshFiltersArray(filters *[]filter, force bool) (int, []filter, []bool, bool) {
</s> add func (f *Filtering) refreshFiltersArray(filters *[]filter, force bool) (int, []filter, []bool, bool) { </s> add // . Store downloaded data in a temporary file inside data/filters directory </s> remove updateCountW, updateFiltersW, updateFlagsW, netErrorW = refreshFiltersArray(&config.WhitelistFilters, force)
</s> add updateCountW, updateFiltersW, updateFlagsW, netErrorW = f.refreshFiltersArray(&config.WhitelistFilters, force) </s> remove func filterSetProperties(url string, newf filter, whitelist bool) int {
</s> add func (f *Filtering) filterSetProperties(url string, newf filter, whitelist bool) int {
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/filter.go
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> if (flags & FilterRefreshForce) != 0 {
<mask> force = true
<mask> }
<mask> if (flags & FilterRefreshBlocklists) != 0 {
<mask> updateCount, updateFilters, updateFlags, netError = refreshFiltersArray(&config.Filters, force)
<mask> }
<mask> if (flags & FilterRefreshAllowlists) != 0 {
<mask> updateCountW := 0
<mask> var updateFiltersW []filter
<mask> var updateFlagsW []bool
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> remove updateCountW, updateFiltersW, updateFlagsW, netErrorW = refreshFiltersArray(&config.WhitelistFilters, force)
</s> add updateCountW, updateFiltersW, updateFlagsW, netErrorW = f.refreshFiltersArray(&config.WhitelistFilters, force) </s> remove if f.Enabled != newf.Enabled {
</s> add if filt.Enabled != newf.Enabled { </s> remove func refreshFiltersArray(filters *[]filter, force bool) (int, []filter, []bool, bool) {
</s> add func (f *Filtering) refreshFiltersArray(filters *[]filter, force bool) (int, []filter, []bool, bool) { </s> remove status := filterSetProperties(fj.URL, f, fj.Whitelist)
</s> add status := f.filterSetProperties(fj.URL, filt, fj.Whitelist) </s> remove refreshLock.Lock()
nUpdated, _ := refreshFiltersIfNecessary(flags)
refreshLock.Unlock()
refreshStatus = 0
</s> add f.refreshLock.Lock()
nUpdated, _ := f.refreshFiltersIfNecessary(flags)
f.refreshLock.Unlock()
f.refreshStatus = 0 </s> remove f.Enabled = newf.Enabled
if f.Enabled {
</s> add filt.Enabled = newf.Enabled
if filt.Enabled {
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/filter.go
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> if (flags & FilterRefreshAllowlists) != 0 {
<mask> updateCountW := 0
<mask> var updateFiltersW []filter
<mask> var updateFlagsW []bool
<mask> updateCountW, updateFiltersW, updateFlagsW, netErrorW = refreshFiltersArray(&config.WhitelistFilters, force)
<mask> updateCount += updateCountW
<mask> updateFilters = append(updateFilters, updateFiltersW...)
<mask> updateFlags = append(updateFlags, updateFlagsW...)
<mask> }
<mask> if netError && netErrorW {
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> remove updateCount, updateFilters, updateFlags, netError = refreshFiltersArray(&config.Filters, force)
</s> add updateCount, updateFilters, updateFlags, netError = f.refreshFiltersArray(&config.Filters, force) </s> remove func refreshFiltersArray(filters *[]filter, force bool) (int, []filter, []bool, bool) {
</s> add func (f *Filtering) refreshFiltersArray(filters *[]filter, force bool) (int, []filter, []bool, bool) { </s> remove func refreshFiltersIfNecessary(flags int) (int, bool) {
</s> add func (f *Filtering) refreshFiltersIfNecessary(flags int) (int, bool) { </s> remove refreshLock.Lock()
nUpdated, _ := refreshFiltersIfNecessary(flags)
refreshLock.Unlock()
refreshStatus = 0
</s> add f.refreshLock.Lock()
nUpdated, _ := f.refreshFiltersIfNecessary(flags)
f.refreshLock.Unlock()
f.refreshStatus = 0 </s> remove if config.DNS.FiltersUpdateIntervalHours != 0 && atomic.CompareAndSwapUint32(&refreshStatus, 0, 1) {
refreshLock.Lock()
_, isNetworkErr = refreshFiltersIfNecessary(FilterRefreshBlocklists | FilterRefreshAllowlists)
refreshLock.Unlock()
refreshStatus = 0
</s> add if config.DNS.FiltersUpdateIntervalHours != 0 && atomic.CompareAndSwapUint32(&f.refreshStatus, 0, 1) {
f.refreshLock.Lock()
_, isNetworkErr = f.refreshFiltersIfNecessary(FilterRefreshBlocklists | FilterRefreshAllowlists)
f.refreshLock.Unlock()
f.refreshStatus = 0 </s> remove updated, err := uf.update()
</s> add updated, err := f.update(uf)
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/filter.go
|
keep keep keep keep replace replace keep keep keep keep keep
|
<mask> return true
<mask> }
<mask>
<mask> // A helper function that parses filter contents and returns a number of rules and a filter name (if there's any)
<mask> func parseFilterContents(contents []byte) (int, string) {
<mask> data := string(contents)
<mask> rulesCount := 0
<mask> name := ""
<mask> seenTitle := false
<mask>
<mask> // Count lines in the filter
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> remove // Count lines in the filter
for len(data) != 0 {
line := util.SplitNext(&data, '\n')
</s> add checksum = crc32.Update(checksum, crc32.IEEETable, []byte(line))
line = strings.TrimSpace(line) </s> add // Extract filter name and count number of rules
_, _ = tmpfile.Seek(0, io.SeekStart)
rulesCount, checksum, filterName := f.parseFilterContents(tmpfile) </s> remove func refreshFiltersIfNecessary(flags int) (int, bool) {
</s> add func (f *Filtering) refreshFiltersIfNecessary(flags int) (int, bool) { </s> remove return rulesCount, name
</s> add return rulesCount, checksum, name
}
// Perform upgrade on a filter and update LastUpdated value
func (f *Filtering) update(filter *filter) (bool, error) {
b, err := f.updateIntl(filter)
filter.LastUpdated = time.Now()
if !b {
e := os.Chtimes(filter.Path(), filter.LastUpdated, filter.LastUpdated)
if e != nil {
log.Error("os.Chtimes(): %v", e)
}
}
return b, err </s> add r := bufio.NewReader(file)
checksum := uint32(0)
for {
line, err := r.ReadString('\n')
if err != nil {
break
} </s> remove
return true, nil
}
// saves filter contents to the file in dataDir
// This method is safe to call during filters update,
// because it creates a new file and then renames it,
// so the currently opened file descriptors to the old filter file remain valid.
func (filter *filter) save() error {
</s> add
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/filter.go
|
keep add keep keep keep keep
|
<mask> name := ""
<mask> seenTitle := false
<mask>
<mask> checksum = crc32.Update(checksum, crc32.IEEETable, []byte(line))
<mask>
<mask> line = strings.TrimSpace(line)
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> remove // Count lines in the filter
for len(data) != 0 {
line := util.SplitNext(&data, '\n')
</s> add checksum = crc32.Update(checksum, crc32.IEEETable, []byte(line))
line = strings.TrimSpace(line) </s> remove func parseFilterContents(contents []byte) (int, string) {
data := string(contents)
</s> add func (f *Filtering) parseFilterContents(file io.Reader) (int, uint32, string) { </s> remove m := filterTitleRegexp.FindAllStringSubmatch(line, -1)
</s> add m := f.filterTitleRegexp.FindAllStringSubmatch(line, -1) </s> remove filter.Data = body
</s> add </s> remove filter.Data = nil
filter.checksum = crc32.ChecksumIEEE(filterFileContents)
</s> add filter.checksum = checksum </s> remove nUpdated, _ := refreshFilters(flags, true)
</s> add nUpdated, _ := f.refreshFilters(flags, true)
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/filter.go
|
keep keep keep keep replace replace replace keep keep keep keep keep
|
<mask> rulesCount := 0
<mask> name := ""
<mask> seenTitle := false
<mask>
<mask> // Count lines in the filter
<mask> for len(data) != 0 {
<mask> line := util.SplitNext(&data, '\n')
<mask> if len(line) == 0 {
<mask> continue
<mask> }
<mask>
<mask> if line[0] == '!' {
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> remove m := filterTitleRegexp.FindAllStringSubmatch(line, -1)
</s> add m := f.filterTitleRegexp.FindAllStringSubmatch(line, -1) </s> remove func parseFilterContents(contents []byte) (int, string) {
data := string(contents)
</s> add func (f *Filtering) parseFilterContents(file io.Reader) (int, uint32, string) { </s> add r := bufio.NewReader(file)
checksum := uint32(0)
for {
line, err := r.ReadString('\n')
if err != nil {
break
} </s> remove body, err := ioutil.ReadAll(resp.Body)
if err != nil {
log.Printf("Couldn't fetch filter contents from URL %s, skipping: %s", filter.URL, err)
return false, err
</s> add htmlTest := true
firstChunk := make([]byte, 4*1024)
firstChunkLen := 0
buf := make([]byte, 64*1024)
total := 0
for {
n, err := resp.Body.Read(buf)
total += n
if htmlTest {
// gather full buffer firstChunk and perform its data tests
num := util.MinInt(n, len(firstChunk)-firstChunkLen)
copied := copy(firstChunk[firstChunkLen:], buf[:num])
firstChunkLen += copied
if firstChunkLen == len(firstChunk) || err == io.EOF {
if !isPrintableText(firstChunk) {
return false, fmt.Errorf("Data contains non-printable characters")
}
s := strings.ToLower(string(firstChunk))
if strings.Index(s, "<html") >= 0 ||
strings.Index(s, "<!doctype") >= 0 {
return false, fmt.Errorf("Data is HTML, not plain text")
}
htmlTest = false
firstChunk = nil
}
}
_, err2 := tmpfile.Write(buf[:n])
if err2 != nil {
return false, err2
}
if err == io.EOF {
break
}
if err != nil {
log.Printf("Couldn't fetch filter contents from URL %s, skipping: %s", filter.URL, err)
return false, err
} </s> remove if updated {
err := uf.saveAndBackupOld()
if err != nil {
log.Printf("Failed to save the updated filter %d: %s", uf.ID, err)
continue
}
} else {
e := os.Chtimes(uf.Path(), uf.LastUpdated, uf.LastUpdated)
if e != nil {
log.Error("os.Chtimes(): %v", e)
}
}
</s> add </s> remove nUpdated, _ := refreshFilters(flags, true)
</s> add nUpdated, _ := f.refreshFilters(flags, true)
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/filter.go
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> continue
<mask> }
<mask>
<mask> if line[0] == '!' {
<mask> m := filterTitleRegexp.FindAllStringSubmatch(line, -1)
<mask> if len(m) > 0 && len(m[0]) >= 2 && !seenTitle {
<mask> name = m[0][1]
<mask> seenTitle = true
<mask> }
<mask> } else {
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> remove // Count lines in the filter
for len(data) != 0 {
line := util.SplitNext(&data, '\n')
</s> add checksum = crc32.Update(checksum, crc32.IEEETable, []byte(line))
line = strings.TrimSpace(line) </s> remove var firstChunk []byte
if len(body) <= 4096 {
firstChunk = body
} else {
firstChunk = body[:4096]
}
if !isPrintableText(firstChunk) {
return false, fmt.Errorf("Data contains non-printable characters")
}
s := strings.ToLower(string(firstChunk))
if strings.Index(s, "<html") >= 0 ||
strings.Index(s, "<!doctype") >= 0 {
return false, fmt.Errorf("Data is HTML, not plain text")
}
// Extract filter name and count number of rules
rulesCount, filterName := parseFilterContents(body)
log.Printf("Filter %d has been updated: %d bytes, %d rules", filter.ID, len(body), rulesCount)
</s> add log.Printf("Filter %d has been updated: %d bytes, %d rules",
filter.ID, total, rulesCount) </s> remove uf.LastUpdated = now
</s> add </s> remove if config.DNS.FiltersUpdateIntervalHours != 0 && atomic.CompareAndSwapUint32(&refreshStatus, 0, 1) {
refreshLock.Lock()
_, isNetworkErr = refreshFiltersIfNecessary(FilterRefreshBlocklists | FilterRefreshAllowlists)
refreshLock.Unlock()
refreshStatus = 0
</s> add if config.DNS.FiltersUpdateIntervalHours != 0 && atomic.CompareAndSwapUint32(&f.refreshStatus, 0, 1) {
f.refreshLock.Lock()
_, isNetworkErr = f.refreshFiltersIfNecessary(FilterRefreshBlocklists | FilterRefreshAllowlists)
f.refreshLock.Unlock()
f.refreshStatus = 0 </s> add r := bufio.NewReader(file)
checksum := uint32(0)
for {
line, err := r.ReadString('\n')
if err != nil {
break
} </s> remove body, err := ioutil.ReadAll(resp.Body)
if err != nil {
log.Printf("Couldn't fetch filter contents from URL %s, skipping: %s", filter.URL, err)
return false, err
</s> add htmlTest := true
firstChunk := make([]byte, 4*1024)
firstChunkLen := 0
buf := make([]byte, 64*1024)
total := 0
for {
n, err := resp.Body.Read(buf)
total += n
if htmlTest {
// gather full buffer firstChunk and perform its data tests
num := util.MinInt(n, len(firstChunk)-firstChunkLen)
copied := copy(firstChunk[firstChunkLen:], buf[:num])
firstChunkLen += copied
if firstChunkLen == len(firstChunk) || err == io.EOF {
if !isPrintableText(firstChunk) {
return false, fmt.Errorf("Data contains non-printable characters")
}
s := strings.ToLower(string(firstChunk))
if strings.Index(s, "<html") >= 0 ||
strings.Index(s, "<!doctype") >= 0 {
return false, fmt.Errorf("Data is HTML, not plain text")
}
htmlTest = false
firstChunk = nil
}
}
_, err2 := tmpfile.Write(buf[:n])
if err2 != nil {
return false, err2
}
if err == io.EOF {
break
}
if err != nil {
log.Printf("Couldn't fetch filter contents from URL %s, skipping: %s", filter.URL, err)
return false, err
}
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/filter.go
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> rulesCount++
<mask> }
<mask> }
<mask>
<mask> return rulesCount, name
<mask> }
<mask>
<mask> // Perform upgrade on a filter
<mask> func (filter *filter) update() (bool, error) {
<mask> log.Tracef("Downloading update for filter %d from %s", filter.ID, filter.URL)
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> remove // Perform upgrade on a filter
func (filter *filter) update() (bool, error) {
</s> add func (f *Filtering) updateIntl(filter *filter) (bool, error) { </s> add tmpfile, err := ioutil.TempFile(filepath.Join(Context.getDataDir(), filterDir), "")
if err != nil {
return false, err
}
defer func() {
if tmpfile != nil {
_ = tmpfile.Close()
_ = os.Remove(tmpfile.Name())
}
}()
</s> remove func (filter *filter) load() error {
</s> add func (f *Filtering) load(filter *filter) error { </s> remove
err := file.SafeWrite(filterFilePath, filter.Data)
// update LastUpdated field after saving the file
filter.LastUpdated = filter.LastTimeUpdated()
return err
}
func (filter *filter) saveAndBackupOld() error {
filterFilePath := filter.Path()
err := os.Rename(filterFilePath, filterFilePath+".old")
if err != nil && !os.IsNotExist(err) {
return err
</s> add err = os.Rename(tmpfile.Name(), filterFilePath)
if err != nil {
return false, err </s> add // Extract filter name and count number of rules
_, _ = tmpfile.Seek(0, io.SeekStart)
rulesCount, checksum, filterName := f.parseFilterContents(tmpfile) </s> remove var firstChunk []byte
if len(body) <= 4096 {
firstChunk = body
} else {
firstChunk = body[:4096]
}
if !isPrintableText(firstChunk) {
return false, fmt.Errorf("Data contains non-printable characters")
}
s := strings.ToLower(string(firstChunk))
if strings.Index(s, "<html") >= 0 ||
strings.Index(s, "<!doctype") >= 0 {
return false, fmt.Errorf("Data is HTML, not plain text")
}
// Extract filter name and count number of rules
rulesCount, filterName := parseFilterContents(body)
log.Printf("Filter %d has been updated: %d bytes, %d rules", filter.ID, len(body), rulesCount)
</s> add log.Printf("Filter %d has been updated: %d bytes, %d rules",
filter.ID, total, rulesCount)
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/filter.go
|
keep keep keep keep replace replace keep keep keep keep keep
|
<mask>
<mask> return rulesCount, name
<mask> }
<mask>
<mask> // Perform upgrade on a filter
<mask> func (filter *filter) update() (bool, error) {
<mask> log.Tracef("Downloading update for filter %d from %s", filter.ID, filter.URL)
<mask>
<mask> resp, err := Context.client.Get(filter.URL)
<mask> if resp != nil && resp.Body != nil {
<mask> defer resp.Body.Close()
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> remove return rulesCount, name
</s> add return rulesCount, checksum, name
}
// Perform upgrade on a filter and update LastUpdated value
func (f *Filtering) update(filter *filter) (bool, error) {
b, err := f.updateIntl(filter)
filter.LastUpdated = time.Now()
if !b {
e := os.Chtimes(filter.Path(), filter.LastUpdated, filter.LastUpdated)
if e != nil {
log.Error("os.Chtimes(): %v", e)
}
}
return b, err </s> add tmpfile, err := ioutil.TempFile(filepath.Join(Context.getDataDir(), filterDir), "")
if err != nil {
return false, err
}
defer func() {
if tmpfile != nil {
_ = tmpfile.Close()
_ = os.Remove(tmpfile.Name())
}
}()
</s> remove
err := file.SafeWrite(filterFilePath, filter.Data)
// update LastUpdated field after saving the file
filter.LastUpdated = filter.LastTimeUpdated()
return err
}
func (filter *filter) saveAndBackupOld() error {
filterFilePath := filter.Path()
err := os.Rename(filterFilePath, filterFilePath+".old")
if err != nil && !os.IsNotExist(err) {
return err
</s> add err = os.Rename(tmpfile.Name(), filterFilePath)
if err != nil {
return false, err </s> remove func (filter *filter) load() error {
</s> add func (f *Filtering) load(filter *filter) error { </s> remove return filter.save()
</s> add tmpfile.Close()
tmpfile = nil
return true, nil </s> remove var firstChunk []byte
if len(body) <= 4096 {
firstChunk = body
} else {
firstChunk = body[:4096]
}
if !isPrintableText(firstChunk) {
return false, fmt.Errorf("Data contains non-printable characters")
}
s := strings.ToLower(string(firstChunk))
if strings.Index(s, "<html") >= 0 ||
strings.Index(s, "<!doctype") >= 0 {
return false, fmt.Errorf("Data is HTML, not plain text")
}
// Extract filter name and count number of rules
rulesCount, filterName := parseFilterContents(body)
log.Printf("Filter %d has been updated: %d bytes, %d rules", filter.ID, len(body), rulesCount)
</s> add log.Printf("Filter %d has been updated: %d bytes, %d rules",
filter.ID, total, rulesCount)
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/filter.go
|
keep keep add keep keep keep keep
|
<mask> func (f *Filtering) updateIntl(filter *filter) (bool, error) {
<mask> log.Tracef("Downloading update for filter %d from %s", filter.ID, filter.URL)
<mask>
<mask> resp, err := Context.client.Get(filter.URL)
<mask> if resp != nil && resp.Body != nil {
<mask> defer resp.Body.Close()
<mask> }
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> remove // Perform upgrade on a filter
func (filter *filter) update() (bool, error) {
</s> add func (f *Filtering) updateIntl(filter *filter) (bool, error) { </s> remove return rulesCount, name
</s> add return rulesCount, checksum, name
}
// Perform upgrade on a filter and update LastUpdated value
func (f *Filtering) update(filter *filter) (bool, error) {
b, err := f.updateIntl(filter)
filter.LastUpdated = time.Now()
if !b {
e := os.Chtimes(filter.Path(), filter.LastUpdated, filter.LastUpdated)
if e != nil {
log.Error("os.Chtimes(): %v", e)
}
}
return b, err </s> remove func (filter *filter) load() error {
</s> add func (f *Filtering) load(filter *filter) error { </s> remove
err := file.SafeWrite(filterFilePath, filter.Data)
// update LastUpdated field after saving the file
filter.LastUpdated = filter.LastTimeUpdated()
return err
}
func (filter *filter) saveAndBackupOld() error {
filterFilePath := filter.Path()
err := os.Rename(filterFilePath, filterFilePath+".old")
if err != nil && !os.IsNotExist(err) {
return err
</s> add err = os.Rename(tmpfile.Name(), filterFilePath)
if err != nil {
return false, err </s> remove return filter.save()
</s> add tmpfile.Close()
tmpfile = nil
return true, nil </s> remove func refreshFilters(flags int, important bool) (int, error) {
set := atomic.CompareAndSwapUint32(&refreshStatus, 0, 1)
</s> add func (f *Filtering) refreshFilters(flags int, important bool) (int, error) {
set := atomic.CompareAndSwapUint32(&f.refreshStatus, 0, 1)
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/filter.go
|
keep keep keep keep replace replace replace replace keep keep keep keep keep
|
<mask> log.Printf("Got status code %d from URL %s, skipping", resp.StatusCode, filter.URL)
<mask> return false, fmt.Errorf("got status code != 200: %d", resp.StatusCode)
<mask> }
<mask>
<mask> body, err := ioutil.ReadAll(resp.Body)
<mask> if err != nil {
<mask> log.Printf("Couldn't fetch filter contents from URL %s, skipping: %s", filter.URL, err)
<mask> return false, err
<mask> }
<mask>
<mask> // Check if the filter has been really changed
<mask> checksum := crc32.ChecksumIEEE(body)
<mask> if filter.checksum == checksum {
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> remove checksum := crc32.ChecksumIEEE(body)
</s> add </s> add // Extract filter name and count number of rules
_, _ = tmpfile.Seek(0, io.SeekStart)
rulesCount, checksum, filterName := f.parseFilterContents(tmpfile) </s> remove ok, err := f.update()
</s> add ok, err := f.update(&filt) </s> remove var firstChunk []byte
if len(body) <= 4096 {
firstChunk = body
} else {
firstChunk = body[:4096]
}
if !isPrintableText(firstChunk) {
return false, fmt.Errorf("Data contains non-printable characters")
}
s := strings.ToLower(string(firstChunk))
if strings.Index(s, "<html") >= 0 ||
strings.Index(s, "<!doctype") >= 0 {
return false, fmt.Errorf("Data is HTML, not plain text")
}
// Extract filter name and count number of rules
rulesCount, filterName := parseFilterContents(body)
log.Printf("Filter %d has been updated: %d bytes, %d rules", filter.ID, len(body), rulesCount)
</s> add log.Printf("Filter %d has been updated: %d bytes, %d rules",
filter.ID, total, rulesCount) </s> remove httpError(w, http.StatusBadRequest, "Couldn't fetch filter from url %s: %s", f.URL, err)
return
}
if f.RulesCount == 0 {
httpError(w, http.StatusBadRequest, "Filter at the url %s has no rules (maybe it points to blank page?)", f.URL)
</s> add httpError(w, http.StatusBadRequest, "Couldn't fetch filter from url %s: %s", filt.URL, err) </s> add tmpfile, err := ioutil.TempFile(filepath.Join(Context.getDataDir(), filterDir), "")
if err != nil {
return false, err
}
defer func() {
if tmpfile != nil {
_ = tmpfile.Close()
_ = os.Remove(tmpfile.Name())
}
}()
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/filter.go
|
keep keep add keep keep keep keep keep
|
<mask> }
<mask> }
<mask>
<mask> // Check if the filter has been really changed
<mask> if filter.checksum == checksum {
<mask> log.Tracef("Filter #%d at URL %s hasn't changed, not updating it", filter.ID, filter.URL)
<mask> return false, nil
<mask> }
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> remove checksum := crc32.ChecksumIEEE(body)
</s> add </s> remove var firstChunk []byte
if len(body) <= 4096 {
firstChunk = body
} else {
firstChunk = body[:4096]
}
if !isPrintableText(firstChunk) {
return false, fmt.Errorf("Data contains non-printable characters")
}
s := strings.ToLower(string(firstChunk))
if strings.Index(s, "<html") >= 0 ||
strings.Index(s, "<!doctype") >= 0 {
return false, fmt.Errorf("Data is HTML, not plain text")
}
// Extract filter name and count number of rules
rulesCount, filterName := parseFilterContents(body)
log.Printf("Filter %d has been updated: %d bytes, %d rules", filter.ID, len(body), rulesCount)
</s> add log.Printf("Filter %d has been updated: %d bytes, %d rules",
filter.ID, total, rulesCount) </s> remove body, err := ioutil.ReadAll(resp.Body)
if err != nil {
log.Printf("Couldn't fetch filter contents from URL %s, skipping: %s", filter.URL, err)
return false, err
</s> add htmlTest := true
firstChunk := make([]byte, 4*1024)
firstChunkLen := 0
buf := make([]byte, 64*1024)
total := 0
for {
n, err := resp.Body.Read(buf)
total += n
if htmlTest {
// gather full buffer firstChunk and perform its data tests
num := util.MinInt(n, len(firstChunk)-firstChunkLen)
copied := copy(firstChunk[firstChunkLen:], buf[:num])
firstChunkLen += copied
if firstChunkLen == len(firstChunk) || err == io.EOF {
if !isPrintableText(firstChunk) {
return false, fmt.Errorf("Data contains non-printable characters")
}
s := strings.ToLower(string(firstChunk))
if strings.Index(s, "<html") >= 0 ||
strings.Index(s, "<!doctype") >= 0 {
return false, fmt.Errorf("Data is HTML, not plain text")
}
htmlTest = false
firstChunk = nil
}
}
_, err2 := tmpfile.Write(buf[:n])
if err2 != nil {
return false, err2
}
if err == io.EOF {
break
}
if err != nil {
log.Printf("Couldn't fetch filter contents from URL %s, skipping: %s", filter.URL, err)
return false, err
} </s> remove nUpdated, _ := refreshFilters(flags, true)
</s> add nUpdated, _ := f.refreshFilters(flags, true) </s> remove httpError(w, http.StatusBadRequest, "Filter at the url %s is invalid (maybe it points to blank page?)", f.URL)
return
}
// Save the filter contents
err = f.save()
if err != nil {
httpError(w, http.StatusBadRequest, "Failed to save filter %d due to %s", f.ID, err)
</s> add httpError(w, http.StatusBadRequest, "Filter at the url %s is invalid (maybe it points to blank page?)", filt.URL) </s> remove httpError(w, http.StatusBadRequest, "Couldn't fetch filter from url %s: %s", f.URL, err)
return
}
if f.RulesCount == 0 {
httpError(w, http.StatusBadRequest, "Filter at the url %s has no rules (maybe it points to blank page?)", f.URL)
</s> add httpError(w, http.StatusBadRequest, "Couldn't fetch filter from url %s: %s", filt.URL, err)
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/filter.go
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> return false, err
<mask> }
<mask>
<mask> // Check if the filter has been really changed
<mask> checksum := crc32.ChecksumIEEE(body)
<mask> if filter.checksum == checksum {
<mask> log.Tracef("Filter #%d at URL %s hasn't changed, not updating it", filter.ID, filter.URL)
<mask> return false, nil
<mask> }
<mask>
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> add // Extract filter name and count number of rules
_, _ = tmpfile.Seek(0, io.SeekStart)
rulesCount, checksum, filterName := f.parseFilterContents(tmpfile) </s> remove var firstChunk []byte
if len(body) <= 4096 {
firstChunk = body
} else {
firstChunk = body[:4096]
}
if !isPrintableText(firstChunk) {
return false, fmt.Errorf("Data contains non-printable characters")
}
s := strings.ToLower(string(firstChunk))
if strings.Index(s, "<html") >= 0 ||
strings.Index(s, "<!doctype") >= 0 {
return false, fmt.Errorf("Data is HTML, not plain text")
}
// Extract filter name and count number of rules
rulesCount, filterName := parseFilterContents(body)
log.Printf("Filter %d has been updated: %d bytes, %d rules", filter.ID, len(body), rulesCount)
</s> add log.Printf("Filter %d has been updated: %d bytes, %d rules",
filter.ID, total, rulesCount) </s> remove body, err := ioutil.ReadAll(resp.Body)
if err != nil {
log.Printf("Couldn't fetch filter contents from URL %s, skipping: %s", filter.URL, err)
return false, err
</s> add htmlTest := true
firstChunk := make([]byte, 4*1024)
firstChunkLen := 0
buf := make([]byte, 64*1024)
total := 0
for {
n, err := resp.Body.Read(buf)
total += n
if htmlTest {
// gather full buffer firstChunk and perform its data tests
num := util.MinInt(n, len(firstChunk)-firstChunkLen)
copied := copy(firstChunk[firstChunkLen:], buf[:num])
firstChunkLen += copied
if firstChunkLen == len(firstChunk) || err == io.EOF {
if !isPrintableText(firstChunk) {
return false, fmt.Errorf("Data contains non-printable characters")
}
s := strings.ToLower(string(firstChunk))
if strings.Index(s, "<html") >= 0 ||
strings.Index(s, "<!doctype") >= 0 {
return false, fmt.Errorf("Data is HTML, not plain text")
}
htmlTest = false
firstChunk = nil
}
}
_, err2 := tmpfile.Write(buf[:n])
if err2 != nil {
return false, err2
}
if err == io.EOF {
break
}
if err != nil {
log.Printf("Couldn't fetch filter contents from URL %s, skipping: %s", filter.URL, err)
return false, err
} </s> remove nUpdated, _ := refreshFilters(flags, true)
</s> add nUpdated, _ := f.refreshFilters(flags, true) </s> remove httpError(w, http.StatusBadRequest, "Couldn't fetch filter from url %s: %s", f.URL, err)
return
}
if f.RulesCount == 0 {
httpError(w, http.StatusBadRequest, "Filter at the url %s has no rules (maybe it points to blank page?)", f.URL)
</s> add httpError(w, http.StatusBadRequest, "Couldn't fetch filter from url %s: %s", filt.URL, err) </s> remove httpError(w, http.StatusBadRequest, "Filter at the url %s is invalid (maybe it points to blank page?)", f.URL)
return
}
// Save the filter contents
err = f.save()
if err != nil {
httpError(w, http.StatusBadRequest, "Failed to save filter %d due to %s", f.ID, err)
</s> add httpError(w, http.StatusBadRequest, "Filter at the url %s is invalid (maybe it points to blank page?)", filt.URL)
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/filter.go
|
keep keep keep keep replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace keep keep keep keep replace keep keep
|
<mask> log.Tracef("Filter #%d at URL %s hasn't changed, not updating it", filter.ID, filter.URL)
<mask> return false, nil
<mask> }
<mask>
<mask> var firstChunk []byte
<mask> if len(body) <= 4096 {
<mask> firstChunk = body
<mask> } else {
<mask> firstChunk = body[:4096]
<mask> }
<mask> if !isPrintableText(firstChunk) {
<mask> return false, fmt.Errorf("Data contains non-printable characters")
<mask> }
<mask>
<mask> s := strings.ToLower(string(firstChunk))
<mask> if strings.Index(s, "<html") >= 0 ||
<mask> strings.Index(s, "<!doctype") >= 0 {
<mask> return false, fmt.Errorf("Data is HTML, not plain text")
<mask> }
<mask>
<mask> // Extract filter name and count number of rules
<mask> rulesCount, filterName := parseFilterContents(body)
<mask> log.Printf("Filter %d has been updated: %d bytes, %d rules", filter.ID, len(body), rulesCount)
<mask> if filterName != "" {
<mask> filter.Name = filterName
<mask> }
<mask> filter.RulesCount = rulesCount
<mask> filter.Data = body
<mask> filter.checksum = checksum
<mask>
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> add // Extract filter name and count number of rules
_, _ = tmpfile.Seek(0, io.SeekStart)
rulesCount, checksum, filterName := f.parseFilterContents(tmpfile) </s> remove body, err := ioutil.ReadAll(resp.Body)
if err != nil {
log.Printf("Couldn't fetch filter contents from URL %s, skipping: %s", filter.URL, err)
return false, err
</s> add htmlTest := true
firstChunk := make([]byte, 4*1024)
firstChunkLen := 0
buf := make([]byte, 64*1024)
total := 0
for {
n, err := resp.Body.Read(buf)
total += n
if htmlTest {
// gather full buffer firstChunk and perform its data tests
num := util.MinInt(n, len(firstChunk)-firstChunkLen)
copied := copy(firstChunk[firstChunkLen:], buf[:num])
firstChunkLen += copied
if firstChunkLen == len(firstChunk) || err == io.EOF {
if !isPrintableText(firstChunk) {
return false, fmt.Errorf("Data contains non-printable characters")
}
s := strings.ToLower(string(firstChunk))
if strings.Index(s, "<html") >= 0 ||
strings.Index(s, "<!doctype") >= 0 {
return false, fmt.Errorf("Data is HTML, not plain text")
}
htmlTest = false
firstChunk = nil
}
}
_, err2 := tmpfile.Write(buf[:n])
if err2 != nil {
return false, err2
}
if err == io.EOF {
break
}
if err != nil {
log.Printf("Couldn't fetch filter contents from URL %s, skipping: %s", filter.URL, err)
return false, err
} </s> remove checksum := crc32.ChecksumIEEE(body)
</s> add </s> add tmpfile, err := ioutil.TempFile(filepath.Join(Context.getDataDir(), filterDir), "")
if err != nil {
return false, err
}
defer func() {
if tmpfile != nil {
_ = tmpfile.Close()
_ = os.Remove(tmpfile.Name())
}
}()
</s> remove m := filterTitleRegexp.FindAllStringSubmatch(line, -1)
</s> add m := f.filterTitleRegexp.FindAllStringSubmatch(line, -1)
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/filter.go
|
keep keep replace replace replace replace replace replace replace replace replace keep keep replace replace replace replace replace replace replace replace replace replace replace replace replace
|
<mask> filter.Data = body
<mask> filter.checksum = checksum
<mask>
<mask> return true, nil
<mask> }
<mask>
<mask> // saves filter contents to the file in dataDir
<mask> // This method is safe to call during filters update,
<mask> // because it creates a new file and then renames it,
<mask> // so the currently opened file descriptors to the old filter file remain valid.
<mask> func (filter *filter) save() error {
<mask> filterFilePath := filter.Path()
<mask> log.Printf("Saving filter %d contents to: %s", filter.ID, filterFilePath)
<mask>
<mask> err := file.SafeWrite(filterFilePath, filter.Data)
<mask>
<mask> // update LastUpdated field after saving the file
<mask> filter.LastUpdated = filter.LastTimeUpdated()
<mask> return err
<mask> }
<mask>
<mask> func (filter *filter) saveAndBackupOld() error {
<mask> filterFilePath := filter.Path()
<mask> err := os.Rename(filterFilePath, filterFilePath+".old")
<mask> if err != nil && !os.IsNotExist(err) {
<mask> return err
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> remove return filter.save()
</s> add tmpfile.Close()
tmpfile = nil
return true, nil </s> remove func (filter *filter) load() error {
</s> add func (f *Filtering) load(filter *filter) error { </s> remove return rulesCount, name
</s> add return rulesCount, checksum, name
}
// Perform upgrade on a filter and update LastUpdated value
func (f *Filtering) update(filter *filter) (bool, error) {
b, err := f.updateIntl(filter)
filter.LastUpdated = time.Now()
if !b {
e := os.Chtimes(filter.Path(), filter.LastUpdated, filter.LastUpdated)
if e != nil {
log.Error("os.Chtimes(): %v", e)
}
}
return b, err </s> remove filter.Data = nil
</s> add </s> add filter.checksum = 0
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/filter.go
|
keep replace keep keep keep replace keep keep keep
|
<mask> }
<mask> return filter.save()
<mask> }
<mask>
<mask> // loads filter contents from the file in dataDir
<mask> func (filter *filter) load() error {
<mask> filterFilePath := filter.Path()
<mask> log.Tracef("Loading filter %d contents to: %s", filter.ID, filterFilePath)
<mask>
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> remove
err := file.SafeWrite(filterFilePath, filter.Data)
// update LastUpdated field after saving the file
filter.LastUpdated = filter.LastTimeUpdated()
return err
}
func (filter *filter) saveAndBackupOld() error {
filterFilePath := filter.Path()
err := os.Rename(filterFilePath, filterFilePath+".old")
if err != nil && !os.IsNotExist(err) {
return err
</s> add err = os.Rename(tmpfile.Name(), filterFilePath)
if err != nil {
return false, err </s> remove
return true, nil
}
// saves filter contents to the file in dataDir
// This method is safe to call during filters update,
// because it creates a new file and then renames it,
// so the currently opened file descriptors to the old filter file remain valid.
func (filter *filter) save() error {
</s> add </s> remove filter.Data = nil
</s> add </s> add filter.checksum = 0 </s> remove // Perform upgrade on a filter
func (filter *filter) update() (bool, error) {
</s> add func (f *Filtering) updateIntl(filter *filter) (bool, error) {
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/filter.go
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> // do nothing, file doesn't exist
<mask> return err
<mask> }
<mask>
<mask> filterFileContents, err := ioutil.ReadFile(filterFilePath)
<mask> if err != nil {
<mask> return err
<mask> }
<mask>
<mask> log.Tracef("File %s, id %d, length %d", filterFilePath, filter.ID, len(filterFileContents))
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> remove log.Tracef("File %s, id %d, length %d", filterFilePath, filter.ID, len(filterFileContents))
rulesCount, _ := parseFilterContents(filterFileContents)
</s> add log.Tracef("File %s, id %d, length %d",
filterFilePath, filter.ID, st.Size())
rulesCount, checksum, _ := f.parseFilterContents(file) </s> add defer file.Close()
st, _ := file.Stat() </s> remove filter.Data = nil
filter.checksum = crc32.ChecksumIEEE(filterFileContents)
</s> add filter.checksum = checksum </s> remove func (filter *filter) load() error {
</s> add func (f *Filtering) load(filter *filter) error { </s> remove
err := file.SafeWrite(filterFilePath, filter.Data)
// update LastUpdated field after saving the file
filter.LastUpdated = filter.LastTimeUpdated()
return err
}
func (filter *filter) saveAndBackupOld() error {
filterFilePath := filter.Path()
err := os.Rename(filterFilePath, filterFilePath+".old")
if err != nil && !os.IsNotExist(err) {
return err
</s> add err = os.Rename(tmpfile.Name(), filterFilePath)
if err != nil {
return false, err </s> remove body, err := ioutil.ReadAll(resp.Body)
if err != nil {
log.Printf("Couldn't fetch filter contents from URL %s, skipping: %s", filter.URL, err)
return false, err
</s> add htmlTest := true
firstChunk := make([]byte, 4*1024)
firstChunkLen := 0
buf := make([]byte, 64*1024)
total := 0
for {
n, err := resp.Body.Read(buf)
total += n
if htmlTest {
// gather full buffer firstChunk and perform its data tests
num := util.MinInt(n, len(firstChunk)-firstChunkLen)
copied := copy(firstChunk[firstChunkLen:], buf[:num])
firstChunkLen += copied
if firstChunkLen == len(firstChunk) || err == io.EOF {
if !isPrintableText(firstChunk) {
return false, fmt.Errorf("Data contains non-printable characters")
}
s := strings.ToLower(string(firstChunk))
if strings.Index(s, "<html") >= 0 ||
strings.Index(s, "<!doctype") >= 0 {
return false, fmt.Errorf("Data is HTML, not plain text")
}
htmlTest = false
firstChunk = nil
}
}
_, err2 := tmpfile.Write(buf[:n])
if err2 != nil {
return false, err2
}
if err == io.EOF {
break
}
if err != nil {
log.Printf("Couldn't fetch filter contents from URL %s, skipping: %s", filter.URL, err)
return false, err
}
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/filter.go
|
keep add keep keep keep keep
|
<mask> return err
<mask> }
<mask>
<mask> log.Tracef("File %s, id %d, length %d",
<mask> filterFilePath, filter.ID, st.Size())
<mask> rulesCount, checksum, _ := f.parseFilterContents(file)
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> remove log.Tracef("File %s, id %d, length %d", filterFilePath, filter.ID, len(filterFileContents))
rulesCount, _ := parseFilterContents(filterFileContents)
</s> add log.Tracef("File %s, id %d, length %d",
filterFilePath, filter.ID, st.Size())
rulesCount, checksum, _ := f.parseFilterContents(file) </s> remove filter.Data = nil
filter.checksum = crc32.ChecksumIEEE(filterFileContents)
</s> add filter.checksum = checksum </s> remove filterFileContents, err := ioutil.ReadFile(filterFilePath)
</s> add file, err := os.Open(filterFilePath) </s> add // Extract filter name and count number of rules
_, _ = tmpfile.Seek(0, io.SeekStart)
rulesCount, checksum, filterName := f.parseFilterContents(tmpfile) </s> remove return rulesCount, name
</s> add return rulesCount, checksum, name
}
// Perform upgrade on a filter and update LastUpdated value
func (f *Filtering) update(filter *filter) (bool, error) {
b, err := f.updateIntl(filter)
filter.LastUpdated = time.Now()
if !b {
e := os.Chtimes(filter.Path(), filter.LastUpdated, filter.LastUpdated)
if e != nil {
log.Error("os.Chtimes(): %v", e)
}
}
return b, err </s> remove body, err := ioutil.ReadAll(resp.Body)
if err != nil {
log.Printf("Couldn't fetch filter contents from URL %s, skipping: %s", filter.URL, err)
return false, err
</s> add htmlTest := true
firstChunk := make([]byte, 4*1024)
firstChunkLen := 0
buf := make([]byte, 64*1024)
total := 0
for {
n, err := resp.Body.Read(buf)
total += n
if htmlTest {
// gather full buffer firstChunk and perform its data tests
num := util.MinInt(n, len(firstChunk)-firstChunkLen)
copied := copy(firstChunk[firstChunkLen:], buf[:num])
firstChunkLen += copied
if firstChunkLen == len(firstChunk) || err == io.EOF {
if !isPrintableText(firstChunk) {
return false, fmt.Errorf("Data contains non-printable characters")
}
s := strings.ToLower(string(firstChunk))
if strings.Index(s, "<html") >= 0 ||
strings.Index(s, "<!doctype") >= 0 {
return false, fmt.Errorf("Data is HTML, not plain text")
}
htmlTest = false
firstChunk = nil
}
}
_, err2 := tmpfile.Write(buf[:n])
if err2 != nil {
return false, err2
}
if err == io.EOF {
break
}
if err != nil {
log.Printf("Couldn't fetch filter contents from URL %s, skipping: %s", filter.URL, err)
return false, err
}
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/filter.go
|
keep replace replace keep keep replace replace keep keep
|
<mask>
<mask> log.Tracef("File %s, id %d, length %d", filterFilePath, filter.ID, len(filterFileContents))
<mask> rulesCount, _ := parseFilterContents(filterFileContents)
<mask>
<mask> filter.RulesCount = rulesCount
<mask> filter.Data = nil
<mask> filter.checksum = crc32.ChecksumIEEE(filterFileContents)
<mask> filter.LastUpdated = filter.LastTimeUpdated()
<mask>
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> add defer file.Close()
st, _ := file.Stat() </s> remove filterFileContents, err := ioutil.ReadFile(filterFilePath)
</s> add file, err := os.Open(filterFilePath) </s> remove filter.Data = body
</s> add </s> remove
return true, nil
}
// saves filter contents to the file in dataDir
// This method is safe to call during filters update,
// because it creates a new file and then renames it,
// so the currently opened file descriptors to the old filter file remain valid.
func (filter *filter) save() error {
</s> add </s> remove var firstChunk []byte
if len(body) <= 4096 {
firstChunk = body
} else {
firstChunk = body[:4096]
}
if !isPrintableText(firstChunk) {
return false, fmt.Errorf("Data contains non-printable characters")
}
s := strings.ToLower(string(firstChunk))
if strings.Index(s, "<html") >= 0 ||
strings.Index(s, "<!doctype") >= 0 {
return false, fmt.Errorf("Data is HTML, not plain text")
}
// Extract filter name and count number of rules
rulesCount, filterName := parseFilterContents(body)
log.Printf("Filter %d has been updated: %d bytes, %d rules", filter.ID, len(body), rulesCount)
</s> add log.Printf("Filter %d has been updated: %d bytes, %d rules",
filter.ID, total, rulesCount)
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/filter.go
|
keep keep keep keep replace keep keep keep keep keep
|
<mask> }
<mask>
<mask> // Clear filter rules
<mask> func (filter *filter) unload() {
<mask> filter.Data = nil
<mask> filter.RulesCount = 0
<mask> }
<mask>
<mask> // Path to the filter contents
<mask> func (filter *filter) Path() string {
</s> Merge: * DNS filters: optimize filter update
Close #1463
Squashed commit of the following:
commit d5bdc939a2ae9f6d1ae879e4225b1dce09657b92
Author: Simon Zolin <[email protected]>
Date: Mon Mar 16 16:39:17 2020 +0300
minor
commit e15b56a0d9db182f9d30b434584018cb1bf038d5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:39:07 2020 +0300
minor
commit 77bf59ca6e556b75af48c5987866af6d5025dae8
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:30:04 2020 +0300
minor
commit e19c13f82dd408ed638bd4b68d21cdfebbdf782f
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:24:50 2020 +0300
minor
commit 9113c6dae6263aa7ee6e4295c2b60dd3083e2bf0
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 14:02:06 2020 +0300
minor
commit 70283e329e32def3375e893f806a2a02d8ca9f57
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:35:11 2020 +0300
logical module Filtering
commit 837a255c6a04941e9fc007a56d71faf4c4213257
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 13:11:37 2020 +0300
minor
commit 1853ed2b57a86dd49508023f47218219399b4fe5
Author: Simon Zolin <[email protected]>
Date: Thu Mar 12 12:59:28 2020 +0300
refactor
commit 1ba3cc53c76255439fe54693b40ee9665fdc15e4
Author: Simon Zolin <[email protected]>
Date: Wed Mar 11 20:12:53 2020 +0300
* filters: optimize update procedure </s> add filter.checksum = 0 </s> remove
return true, nil
}
// saves filter contents to the file in dataDir
// This method is safe to call during filters update,
// because it creates a new file and then renames it,
// so the currently opened file descriptors to the old filter file remain valid.
func (filter *filter) save() error {
</s> add </s> remove
err := file.SafeWrite(filterFilePath, filter.Data)
// update LastUpdated field after saving the file
filter.LastUpdated = filter.LastTimeUpdated()
return err
}
func (filter *filter) saveAndBackupOld() error {
filterFilePath := filter.Path()
err := os.Rename(filterFilePath, filterFilePath+".old")
if err != nil && !os.IsNotExist(err) {
return err
</s> add err = os.Rename(tmpfile.Name(), filterFilePath)
if err != nil {
return false, err </s> remove func (filter *filter) load() error {
</s> add func (f *Filtering) load(filter *filter) error { </s> remove return filter.save()
</s> add tmpfile.Close()
tmpfile = nil
return true, nil </s> remove return rulesCount, name
</s> add return rulesCount, checksum, name
}
// Perform upgrade on a filter and update LastUpdated value
func (f *Filtering) update(filter *filter) (bool, error) {
b, err := f.updateIntl(filter)
filter.LastUpdated = time.Now()
if !b {
e := os.Chtimes(filter.Path(), filter.LastUpdated, filter.LastUpdated)
if e != nil {
log.Error("os.Chtimes(): %v", e)
}
}
return b, err
|
https://github.com/AdguardTeam/AdGuardHome/commit/646725efb7ea5693fc537ae88ec259ddfa21dd80
|
home/filter.go
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.