summaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
authorHarsh Shandilya <msfjarvis@gmail.com>2020-10-11 19:16:48 +0530
committerGitHub <noreply@github.com>2020-10-11 19:16:48 +0530
commit591bb4e795114f99f4701b1982b0db0880e8370a (patch)
tree33a4822d0c501ccf5a3165a03a7cfd64ab99e7d3 /app/src/main/java
parentfacc4d91635e7cd4a502bece0e20ea92fa23e3f6 (diff)
ProxyUtils: correctly handle the 'no proxy' case (#1148)
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/utils/ProxyUtils.kt2
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)))
}