Fix how gen-worker-ip work with DNSMASQ