Update ip-generator.sh

minor bug fix