From 591bb4e795114f99f4701b1982b0db0880e8370a Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sun, 11 Oct 2020 19:16:48 +0530 Subject: [PATCH] ProxyUtils: correctly handle the 'no proxy' case (#1148) Signed-off-by: Harsh Shandilya --- app/src/main/java/com/zeapo/pwdstore/utils/ProxyUtils.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/zeapo/pwdstore/utils/ProxyUtils.kt b/app/src/main/java/com/zeapo/pwdstore/utils/ProxyUtils.kt index f6401a1d..4bb3dfcb 100644 --- a/app/src/main/java/com/zeapo/pwdstore/utils/ProxyUtils.kt +++ b/app/src/main/java/com/zeapo/pwdstore/utils/ProxyUtils.kt @@ -32,7 +32,7 @@ object ProxyUtils { val host = GitSettings.proxyHost val port = GitSettings.proxyPort return if (host == null || port == -1) { - mutableListOf() + mutableListOf(Proxy.NO_PROXY) } else { mutableListOf(Proxy(Proxy.Type.HTTP, InetSocketAddress.createUnresolved(host, port))) }