Commit 3cab22bb authored by hujiebin's avatar hujiebin

panic 保护

parent ad6f7ca0
......@@ -67,7 +67,9 @@ func (b *Builder) UpdateState(addrs []string) {
for i, s := range addrs {
as[i] = resolver.Address{Addr: s}
}
b.cc.UpdateState(resolver.State{Addresses: as})
if b.cc != nil {
_ = b.cc.UpdateState(resolver.State{Addresses: as})
}
}
func init() {
......
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