fix dns handler panic
This commit is contained in:
@ -71,7 +71,10 @@ func (h *dnsHandler) Init(md md.Metadata) (err error) {
|
||||
for i, addr := range h.md.dns {
|
||||
nodes = append(nodes, chain.NewNode(fmt.Sprintf("target-%d", i), addr))
|
||||
}
|
||||
h.hop = xhop.NewHop(xhop.NodeOption(nodes...))
|
||||
h.hop = xhop.NewHop(
|
||||
xhop.NodeOption(nodes...),
|
||||
xhop.LoggerOption(log),
|
||||
)
|
||||
}
|
||||
|
||||
var nodes []*chain.Node
|
||||
|
Reference in New Issue
Block a user