Hi! I have error from net.InterfaceAddrs() like route ip+net: no such network interface i think that error happened because i have docker running that creates/deletes interfaces in my system. My question is - does returned slice from InterfaceAddrs filed always, or in case of error in always nil? As i understand go uses netlink to get all interfaces and when tries to get address from interface that already gone, this error happened. In my case this error not fatal, i only need to know all local unicast addresses. So if some interface is gone - this is not fatal, but i need to get all available ip. So if this function not fills the slice , i need to use different method to get all addresses.
Can you helps me? P.S. Error not easy to reproduce in my case, so i can't easy check does InterfaceAddrs slice filled in case of error. -- Vasiliy Tolstov, e-mail: v.tols...@selfip.ru -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CACaajQt6P%3DgsQ_%2B2mgsJ-%3Dayxv3Gh-AbkpF_J4N4o4wziK5K8w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.