mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 16:54:15 -04:00
plugin/route53: make the upstream address in route53 plugin optional. (#2263)
* Make the upstream in route53 plugin optional. Signed-off-by: Jiacheng Xu <xjcmaxwellcjx@gmail.com> * Add 2 tests for upstream in route53. Signed-off-by: Jiacheng Xu <xjcmaxwellcjx@gmail.com> * Change the readme. Signed-off-by: Jiacheng Xu <xjcmaxwellcjx@gmail.com>
This commit is contained in:
@@ -84,11 +84,6 @@ func setup(c *caddy.Controller, f func(*credentials.Credentials) route53iface.Ro
|
||||
})
|
||||
case "upstream":
|
||||
args := c.RemainingArgs()
|
||||
// TODO(dilyevsky): There is a bug that causes coredns to crash
|
||||
// when no upstream endpoint is provided.
|
||||
if len(args) == 0 {
|
||||
return c.Errf("local upstream not supported. please provide upstream endpoint")
|
||||
}
|
||||
var err error
|
||||
up, err = upstream.New(args)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user