mirror of
https://github.com/jwdeveloper/TikTokLiveJava.git
synced 2026-02-27 16:59:39 -05:00
Push for proxy test pt 4!
This commit is contained in:
@@ -33,7 +33,7 @@ import java.util.function.Consumer;
|
||||
@Setter
|
||||
public class ProxyClientSettings implements Iterator<ProxyData>
|
||||
{
|
||||
private boolean enabled;
|
||||
private boolean enabled, lastSuccess;
|
||||
private Rotation rotation = Rotation.CONSECUTIVE;
|
||||
private final List<ProxyData> proxyList = new ArrayList<>();
|
||||
private int index = 0;
|
||||
@@ -65,6 +65,8 @@ public class ProxyClientSettings implements Iterator<ProxyData>
|
||||
@Override
|
||||
public ProxyData next()
|
||||
{
|
||||
if (lastSuccess)
|
||||
return proxyList.get(index);
|
||||
var nextProxy = switch (rotation)
|
||||
{
|
||||
case CONSECUTIVE -> {
|
||||
|
||||
Reference in New Issue
Block a user