fix bug in get_nodes(). treat 0.0.0.0 as invalid IP