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
Fixes #14162
  • Loading branch information
diemol committed Jun 26, 2024
1 parent abdaa75 commit 034a582
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 034a582

Please sign in to comment.