Fix bug in get_local_addrs() -- ifindex was not set for tun devices