mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-03 16:49:10 +00:00
Started on proxy support
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
package org.parabot.core.proxy;
|
||||
|
||||
import socks.Socks4Proxy;
|
||||
import socks.Socks5Proxy;
|
||||
|
||||
import java.net.UnknownHostException;
|
||||
|
||||
/**
|
||||
* User: Jeroen
|
||||
* Date: 18/02/14
|
||||
* Time: 16:54
|
||||
*/
|
||||
public class Proxy {
|
||||
public static Socks5Proxy proxy5;
|
||||
public static Socks4Proxy proxy4;
|
||||
|
||||
public static void setProxy4() throws UnknownHostException {
|
||||
|
||||
}
|
||||
|
||||
public static void setProxy5() throws UnknownHostException {
|
||||
proxy5 = new Socks5Proxy("80.63.56.146", 1080);
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws UnknownHostException {
|
||||
setProxy5();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user