larksuite-oapi/src/main/java/com/larksuite/oapi/okhttp3_14/internal/connection/RouteSelector.java
private void resetNextProxy(HttpUrl url, Proxy proxy) {
    if (proxy != null) {
      // If the user specifies a proxy, try that and only that.
      proxies = Collections.singletonList(proxy);
    } else {
      // Try each of the ProxySelector choices until one connection succeeds.
      List<Proxy> proxiesOrNull = address.proxySelector().select(url.uri());
      proxies = proxiesOrNull != null && !proxiesOrNull.isEmpty()
          ? Util.immutableList(proxiesOrNull)
          : Util.immutableList(Proxy.NO_PROXY);
    }
    nextProxyIndex = 0;
  }
/** Prepares the proxy servers to try. */
Prepares the proxy servers to try.
Prepares the proxy servers to try .
private void resetNextProxy(HttpUrl url, Proxy proxy) {
    if (proxy != null) {
      proxies = Collections.singletonList(proxy);
    } else {
      List<Proxy> proxiesOrNull = address.proxySelector().select(url.uri());
      proxies = proxiesOrNull != null && !proxiesOrNull.isEmpty()
          ? Util.immutableList(proxiesOrNull)
          : Util.immutableList(Proxy.NO_PROXY);
    }
    nextProxyIndex = 0;
  }
private void resetNextProxy ( HttpUrl url , Proxy proxy ) { if ( proxy != null ) { proxies = Collections . singletonList ( proxy ) ; } else { List < Proxy > proxiesOrNull = address . proxySelector ( ) . select ( url . uri ( ) ) ; proxies = proxiesOrNull != null && ! proxiesOrNull . isEmpty ( ) ? Util . immutableList ( proxiesOrNull ) : Util . immutableList ( Proxy . NO_PROXY ) ; } nextProxyIndex = 0 ; }
Prepares the proxy servers to try.
Prepares the proxy servers to try .
// If the user specifies a proxy, try that and only that. // Try each of the ProxySelector choices until one connection succeeds.