Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static {
- ProxySelector.setDefault(new ProxySelector() {
- private final ProxySelector def = ProxySelector.getDefault();
- @Override
- public List<Proxy> select(final URI uri) {
- return Arrays.asList(new Proxy(Proxy.Type.SOCKS, new InetSocketAddress("127.0.0.1", 8889)));
- }
- @Override
- public void connectFailed(final URI uri, final SocketAddress sa, final IOException ioe) {
- throw new UnsupportedOperationException("Not supported yet.");
- }
- });
- }
Add Comment
Please, Sign In to add comment