mirror of
https://github.com/coredns/coredns.git
synced 2025-11-01 18:53:43 -04:00
@@ -13,7 +13,7 @@ type NameRule struct {
|
||||
From, To string
|
||||
}
|
||||
|
||||
// Initializer
|
||||
// New initializes a new rule.
|
||||
func (rule NameRule) New(args ...string) Rule {
|
||||
from, to := args[0], strings.Join(args[1:], " ")
|
||||
return &NameRule{middleware.Name(from).Normalize(), middleware.Name(to).Normalize()}
|
||||
|
||||
Reference in New Issue
Block a user