Allow getIPversion to accept no answer (if a flag is set)