Skip to content

Commit

Permalink
modify plugins definitions
Browse files Browse the repository at this point in the history
Signed-off-by: guangli.bao <guangli.bao@daocloud.io>
  • Loading branch information
tukwila committed Aug 16, 2023
1 parent ccb1474 commit 2ec40fe
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
18 changes: 18 additions & 0 deletions migration/plugins.go
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -406,6 +417,13 @@ var plugins = map[string]map[string]plugin{
"ttl": {},
},
},
"v2": plugin{
namedOptions: map[string]option{
"apex": {},
"ttl": {},
"Fall": {},
},
},
},

"proxy": {
Expand Down
3 changes: 1 addition & 2 deletions migration/versions.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 2ec40fe

Please sign in to comment.