check proxy length