title: How to set proxy in Glide library
body: <p>I'm using Psiphon vpn bundled in my app, so all REST calls goes through a local port.</p>
  
  <p>I've added a proxy to <code>OkHttp</code> client in<code>Retrofit</code> like this:</p>
  
  <pre><code>OkHttpClient.Builder client = 
              new OkHttpClient.Builder().proxy(new Proxy(Proxy.Type.HTTP,
              new InetSocketAddress("localhost", randomPort )));
  builder.client(client.build());
  retrofit = builder.build();
  </code></pre>
  
  <p>Everything works fine so far and I can load all text contents through local proxy successfully, but images didn't load because Glide has a custom connection. </p>
  
  <p>Now I want to set a proxy similar to above code to Glide, or any other libraries for image loading</p>
  
  <p>I'm using Glide "4.8.0" simply like this:</p>
  
  <pre><code>Glide.with(this)
              .load(image_url)
              .into(miniImageView);
  </code></pre>