fix dhcp default gateway for windows/macos
omit newline from ip string