From 0393e4109624395bb97af146f2d0e48ea3d7c37b Mon Sep 17 00:00:00 2001 From: Dimitry Kolyshev Date: Fri, 12 May 2023 13:04:19 +0300 Subject: [PATCH] Pull request: 1577: rewrite edit http api Merge in DNS/adguard-home from 1577-rewrite-edit to master Squashed commit of the following: commit d03bee2a14337d169eea950b3df18a447c02b422 Author: Dimitry Kolyshev Date: Fri May 12 12:54:15 2023 +0300 filtering: imp tests commit bd68320df6dc057d922d91551cd00c74ebfaad6c Author: Dimitry Kolyshev Date: Fri May 12 10:38:12 2023 +0300 filtering: rewrite http tests commit 0d8bbcd0194c0db89a6d4b45927669423c9bbb59 Author: Dimitry Kolyshev Date: Thu May 11 12:06:30 2023 +0300 filtering: rewrite http tests commit 29080384dd8fa80d5286d2fac1a4429d712bbafa Author: Dimitry Kolyshev Date: Wed May 10 17:24:00 2023 +0300 filtering: imp code commit 96c6b1c98debfae565c5e6254746959a4307744e Author: Dimitry Kolyshev Date: Wed May 10 16:56:32 2023 +0300 filtering: imp code commit b5d0c50ea11f9d829ba9d2b188fcc471a965e012 Merge: 5fa9e1c37 c77b2a0ce Author: Dimitry Kolyshev Date: Wed May 10 16:37:19 2023 +0300 Merge remote-tracking branch 'origin/master' into 1577-rewrite-edit commit 5fa9e1c3714e107f893c03efa72227f3ed88691c Author: Dimitry Kolyshev Date: Wed May 10 16:35:19 2023 +0300 filtering: imp code commit dd9dce8fbf0ce4bd200f2fc2fbf580e025920cd5 Author: Dimitry Kolyshev Date: Wed May 10 13:06:43 2023 +0300 docs: rewrite http update commit 0c67b040e80787b084c4669bb20db8d6d145fc1b Author: Dimitry Kolyshev Date: Wed May 10 13:04:31 2023 +0300 filtering: rewrite http update --- CHANGELOG.md | 6 + internal/filtering/http.go | 1 + internal/filtering/rewritehttp.go | 60 +++++++ internal/filtering/rewritehttp_test.go | 237 +++++++++++++++++++++++++ openapi/CHANGELOG.md | 12 ++ openapi/openapi.yaml | 25 +++ 6 files changed, 341 insertions(+) create mode 100644 internal/filtering/rewritehttp_test.go diff --git a/CHANGELOG.md b/CHANGELOG.md index 314a4646..58dd6c16 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,11 @@ See also the [v0.107.30 GitHub milestone][ms-v0.107.30]. NOTE: Add new changes BELOW THIS COMMENT. --> +### Added + +- The ability to edit rewrite rules via `PUT /control/rewrite/update` HTTP API + ([#1577]). + ### Fixed - Unquoted IPv6 bind hosts with trailing colons erroneously considered @@ -35,6 +40,7 @@ NOTE: Add new changes BELOW THIS COMMENT. - Provided bootstrap servers are now used to resolve the hostnames of plain UDP/TCP upstream servers. +[#1577]: https://github.com/AdguardTeam/AdGuardHome/issues/1577 [#5716]: https://github.com/AdguardTeam/AdGuardHome/issues/5716