diff options
author | Harsh Shandilya <msfjarvis@gmail.com> | 2020-10-11 19:16:48 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-11 19:16:48 +0530 |
commit | 591bb4e795114f99f4701b1982b0db0880e8370a (patch) | |
tree | 33a4822d0c501ccf5a3165a03a7cfd64ab99e7d3 | |
parent | facc4d91635e7cd4a502bece0e20ea92fa23e3f6 (diff) |
ProxyUtils: correctly handle the 'no proxy' case (#1148)
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
-rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/utils/ProxyUtils.kt | 2 |
1 files changed, 1 insertions, 1 deletions
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))) } |