News

You are calling get_next_ip within the if-else loop, move it out of there, after the 'fi' and before 'continue'. It has to run regardless of success or failure, right?