Last active
December 27, 2016 17:59
-
-
Save evant/ab9a06194a5d910b7f13 to your computer and use it in GitHub Desktop.
Proxy okhttp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OkHttpClient client = new OkHttpClient(); | |
Proxy proxy = new Proxy(Proxy.Type.HTTP, InetSocketAddress.createUnresolved("192.168.1.105", 8081); | |
client.setProxy(proxy); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment