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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue