From 0e23a3d7c25b729be14f72e17f9f5d1c1cf03a2d Mon Sep 17 00:00:00 2001 From: Sentsuki <52487960+Sentsuki@users.noreply.github.com> Date: Sun, 10 Aug 2025 19:49:04 +0800 Subject: [PATCH] documentation: Fix Rcode's migration guide Signed-off-by: Sentsuki <52487960+Sentsuki@users.noreply.github.com> --- docs/migration.md | 17 +++++++++-------- docs/migration.zh.md | 15 ++++++++------- 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/docs/migration.md b/docs/migration.md index 50a0655f..86074ac7 100644 --- a/docs/migration.md +++ b/docs/migration.md @@ -351,14 +351,15 @@ DNS servers are refactored for better performance and scalability. ```json { "dns": { - "servers": [ + "rules": [ { - "type": "predefined", - "responses": [ - { - "rcode": "REFUSED" - } - ] + "domain": [ + "example.com" + ], + // other rules + + "action": "predefined", + "rcode": "REFUSED" } ] } @@ -1187,4 +1188,4 @@ which will disrupt the existing `process_path` use cases in Windows. } } } - ``` \ No newline at end of file + ``` diff --git a/docs/migration.zh.md b/docs/migration.zh.md index 950e5170..3a4dde7f 100644 --- a/docs/migration.zh.md +++ b/docs/migration.zh.md @@ -351,14 +351,15 @@ DNS 服务器已经重构。 ```json { "dns": { - "servers": [ + "rules": [ { - "type": "predefined", - "responses": [ - { - "rcode": "REFUSED" - } - ] + "domain": [ + "example.com" + ], + // 其它规则 + + "action": "predefined", + "rcode": "REFUSED" } ] }