rpearce: Fix output when ip's exhausted