mirror of
https://github.com/jwdeveloper/TikTokLiveJava.git
synced 2026-02-28 01:09:40 -05:00
Push for proxy test pt 3!
This commit is contained in:
@@ -45,11 +45,11 @@ public class ProxyExample
|
||||
{
|
||||
clientSettings.setPrintToConsole(true);
|
||||
clientSettings.getHttpSettings().configureProxy(proxySettings -> {
|
||||
proxySettings.setType(Proxy.Type.SOCKS);
|
||||
proxySettings.setOnProxyUpdated(proxyData ->
|
||||
{
|
||||
System.out.println("Next proxy! "+proxyData.toString());
|
||||
System.err.println("Next proxy: "+proxyData.toString());
|
||||
});
|
||||
proxySettings.setType(Proxy.Type.SOCKS);
|
||||
entries.forEach(entry -> proxySettings.addProxy(entry.getKey(), entry.getValue()));
|
||||
});
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user