Skip to content
Snippets Groups Projects
Commit 8f48aa99 authored by rmarpozo's avatar rmarpozo Committed by Joe Littlejohn
Browse files

tabs changed with white spaces

parent 908ccbfd
No related branches found
No related tags found
No related merge requests found
......@@ -202,20 +202,20 @@ public class StartEmbeddedMongoMojo extends AbstractMojo {
private void addProxySelector() {
// Add authenticator with proxyUser and proxyPassword
if(proxyUser != null && proxyPassword != null) {
Authenticator.setDefault(new Authenticator() {
public PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication(proxyUser, proxyPassword.toCharArray());
}
});
}
if(proxyUser != null && proxyPassword != null) {
Authenticator.setDefault(new Authenticator() {
public PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication(proxyUser, proxyPassword.toCharArray());
}
});
}
final ProxySelector defaultProxySelector = ProxySelector.getDefault();
ProxySelector.setDefault(new ProxySelector() {
@Override
public List<Proxy> select(URI uri) {
if (uri.getHost().equals("fastdl.mongodb.org")) {
return singletonList(new Proxy(Proxy.Type.HTTP, new InetSocketAddress(proxyHost, proxyPort)));
return singletonList(new Proxy(Proxy.Type.HTTP, new InetSocketAddress(proxyHost, proxyPort)));
} else {
return defaultProxySelector.select(uri);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment