alter the net.py validip func