my $cur_proxy = $valid_routes[$j]; $ua->proxy(['http'], $cur_proxy);