From c2c44a076f9494d751938c113d713b5b8c9afa5f 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 255b7069..2f027a71 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" } ] }