mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-06 08:39:33 +00:00
Started on proxy support
This commit is contained in:
+2
-3
@@ -47,12 +47,11 @@ parabotv2/src/META-INF/MANIFEST.MF
|
|||||||
|
|
||||||
.idea/uiDesigner.xml
|
.idea/uiDesigner.xml
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
.idea/libraries/jfxrt.xml
|
.idea/libraries/jfxrt.xml
|
||||||
=======
|
|
||||||
*.jar
|
*.jar
|
||||||
|
|
||||||
*.classpath
|
*.classpath
|
||||||
|
|
||||||
*.project
|
*.project
|
||||||
>>>>>>> 18cffe02674768c9927a96cc05d2ae09e803974d
|
|
||||||
|
*.xml
|
||||||
|
|||||||
@@ -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