diff options
author | 2022-03-18 10:11:53 -0400 | |
---|---|---|
committer | 2022-03-18 07:11:53 -0700 | |
commit | 90680b7077a932177c1b90ca3c8c1e35dd1a1b30 (patch) | |
tree | dd83f24768956607bdf0c2e203849c145b24bf65 /plugin/bind/setup.go | |
parent | 74b84a137757c9bc3da5b95ce52007cab681d025 (diff) | |
download | coredns-90680b7077a932177c1b90ca3c8c1e35dd1a1b30.tar.gz coredns-90680b7077a932177c1b90ca3c8c1e35dd1a1b30.tar.zst coredns-90680b7077a932177c1b90ca3c8c1e35dd1a1b30.zip |
only warn when getting interface list fails (#5272)
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
Diffstat (limited to 'plugin/bind/setup.go')
-rw-r--r-- | plugin/bind/setup.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugin/bind/setup.go b/plugin/bind/setup.go index 471cd2803..068d15dea 100644 --- a/plugin/bind/setup.go +++ b/plugin/bind/setup.go @@ -8,6 +8,7 @@ import ( "github.com/coredns/caddy" "github.com/coredns/coredns/core/dnsserver" "github.com/coredns/coredns/plugin" + "github.com/coredns/coredns/plugin/pkg/log" ) func setup(c *caddy.Controller) error { @@ -17,7 +18,7 @@ func setup(c *caddy.Controller) error { all := []string{} ifaces, err := net.Interfaces() 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() { |