fix code not use domain, use ip