Commit 90680b70 authored by Chris O'Haver's avatar Chris O'Haver Committed by GitHub

only warn when getting interface list fails (#5272)

Signed-off-by: default avatarChris O'Haver <cohaver@infoblox.com>
parent 74b84a13
...@@ -8,6 +8,7 @@ import ( ...@@ -8,6 +8,7 @@ import (
"github.com/coredns/caddy" "github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver" "github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin" "github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/log"
) )
func setup(c *caddy.Controller) error { func setup(c *caddy.Controller) error {
...@@ -17,7 +18,7 @@ func setup(c *caddy.Controller) error { ...@@ -17,7 +18,7 @@ func setup(c *caddy.Controller) error {
all := []string{} all := []string{}
ifaces, err := net.Interfaces() ifaces, err := net.Interfaces()
if err != nil { if err != nil {
return plugin.Error("bind", fmt.Errorf("failed to get interfaces list: %s", err)) log.Warning(plugin.Error("bind", fmt.Errorf("failed to get interfaces list, cannot bind by interface name: %s", err)))
} }
for c.Next() { for c.Next() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment