java 程序中添加socks 5代理
在需要使用代理的地方添加如下code:
System.getProperties().put("socksProxySet","true");
System.getProperties().put("socksProxyHost","localhost");
System.getProperties().put("socksProxyPort","7575");
在需要使用代理的地方添加如下code:
System.getProperties().put("socksProxySet","true");
System.getProperties().put("socksProxyHost","localhost");
System.getProperties().put("socksProxyPort","7575");