MCPcopy Index your code
hub / github.com/0x727/DropLabTools / getProxy

Method getProxy

src/main/java/com/droplab/Utils/HttpUtils.java:350–369  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

348
349
350 private static Proxy getProxy(){
351 if (InfoUtils.openProxy){
352 InetSocketAddress inetSocketAddress = new InetSocketAddress(InfoUtils.ProxyHost, InfoUtils.ProxyPort);
353 Proxy.Type type;
354 switch (InfoUtils.ProxyType){
355 case "HTTP":
356 type=Proxy.Type.HTTP;
357 break;
358 case "SOCKS":
359 type=Proxy.Type.SOCKS;
360 break;
361 default:
362 type=Proxy.Type.DIRECT;
363 break;
364 }
365 return new Proxy(type, inetSocketAddress);
366 }else{
367 return null;
368 }
369 }
370
371
372 static class MyAuthenticator extends Authenticator {

Callers 2

getMethod · 0.95
doPostRequestMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected