mirror of
https://github.com/notherealmarco/coredns-deployment.git
synced 2025-05-05 20:42:33 +02:00
k8s migration: add handler for multi proxy to forward (#164)
add global postprocess and handler for multi proxy to forward
This commit is contained in:
parent
709b136563
commit
d7f87ddf2a
4 changed files with 129 additions and 15 deletions
|
@ -25,7 +25,7 @@ type Option struct {
|
|||
Args []string
|
||||
}
|
||||
|
||||
func New(s string) (Corefile, error) {
|
||||
func New(s string) (*Corefile, error) {
|
||||
c := Corefile{}
|
||||
cc := caddy.NewTestController("migration", s)
|
||||
depth := 0
|
||||
|
@ -63,7 +63,7 @@ func New(s string) (Corefile, error) {
|
|||
})
|
||||
}
|
||||
}
|
||||
return c, nil
|
||||
return &c, nil
|
||||
}
|
||||
|
||||
func (c *Corefile) ToString() (out string) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue