improve dup_ip_detect.sh