From 2ec40fe42fe0d85dc7a7ae24a26231e658947cf5 Mon Sep 17 00:00:00 2001 From: "guangli.bao" Date: Wed, 16 Aug 2023 16:57:48 +0800 Subject: [PATCH] modify plugins definitions Signed-off-by: guangli.bao --- migration/plugins.go | 18 ++++++++++++++++++ migration/versions.go | 3 +-- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/migration/plugins.go b/migration/plugins.go index abfb04d..26ffa1c 100644 --- a/migration/plugins.go +++ b/migration/plugins.go @@ -309,6 +309,17 @@ var plugins = map[string]map[string]plugin{ "ttl": {}, // new option }, }, + "v3": plugin{ + namedOptions: map[string]option{ + "type": {}, + "class": {}, + "name": {}, + "answer name": {}, + "edns0": {}, + "ttl": {}, // new option + "cname_target": {}, + }, + }, }, "log": { @@ -406,6 +417,13 @@ var plugins = map[string]map[string]plugin{ "ttl": {}, }, }, + "v2": plugin{ + namedOptions: map[string]option{ + "apex": {}, + "ttl": {}, + "Fall": {}, + }, + }, }, "proxy": { diff --git a/migration/versions.go b/migration/versions.go index 783620d..e4238d5 100644 --- a/migration/versions.go +++ b/migration/versions.go @@ -766,9 +766,8 @@ var plugins_1_11_0 = map[string]plugin{ "reload": {}, "loadbalance": {}, "hosts": plugins["hosts"]["v1"], - "rewrite": plugins["rewrite"]["v2"], + "rewrite": plugins["rewrite"]["v3"], "transfer": plugins["transfer"]["v1"], - "dnstap": plugins["dnstap"]["v1"], // add tls support } var plugins_1_9_3 = map[string]plugin{