mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-08-29 13:27:46 +00:00
ProxyUtils: correctly handle the 'no proxy' case (#1148)
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
facc4d9163
commit
591bb4e795
@ -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)))
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user