Test setIPv4Only() only on supported library versions.