Skip to content

Commit

Permalink
[java] Setting proxy in SM only when it is needed.
Browse files Browse the repository at this point in the history
  • Loading branch information
diemol authored and sandeepsuryaprasad committed Oct 29, 2024
1 parent 3d6eeed commit b120584
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,9 @@ private List<String> toArguments() {
}

Proxy proxy = Proxy.extractFrom(options);
if (proxy != null) {
if (proxy != null
&& proxy.getProxyType() != Proxy.ProxyType.DIRECT
&& proxy.getProxyType() != Proxy.ProxyType.AUTODETECT) {
arguments.add("--proxy");
if (proxy.getSslProxy() != null) {
arguments.add(proxy.getSslProxy());
Expand Down

0 comments on commit b120584

Please sign in to comment.