mirror of
https://github.com/coredns/coredns.git
synced 2025-10-31 18:23:13 -04:00
Add more options to the plugin
Signed-off-by: Miek Gieben <miek@miek.nl>
This commit is contained in:
@@ -51,13 +51,18 @@ func setup(c *caddy.Controller) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func parse(c *caddy.Controller) error {
|
||||
func parse(c *caddy.Controller) (*Traffic, error) {
|
||||
for c.Next() {
|
||||
args := c.RemainingArgs()
|
||||
if len(args) != 0 {
|
||||
return c.ArgErr()
|
||||
return nil, c.ArgErr()
|
||||
|
||||
}
|
||||
for c.NextBlock() {
|
||||
switch c.Val() {
|
||||
case "id":
|
||||
}
|
||||
}
|
||||
}
|
||||
return nil
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user