mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-08-30 05:48:09 +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 host = GitSettings.proxyHost
|
||||||
val port = GitSettings.proxyPort
|
val port = GitSettings.proxyPort
|
||||||
return if (host == null || port == -1) {
|
return if (host == null || port == -1) {
|
||||||
mutableListOf()
|
mutableListOf(Proxy.NO_PROXY)
|
||||||
} else {
|
} else {
|
||||||
mutableListOf(Proxy(Proxy.Type.HTTP, InetSocketAddress.createUnresolved(host, port)))
|
mutableListOf(Proxy(Proxy.Type.HTTP, InetSocketAddress.createUnresolved(host, port)))
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user