We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f149ae5 commit e4cbaecCopy full SHA for e4cbaec
APIFiles/APIClient.go
@@ -70,14 +70,14 @@ type ApiClient struct {
70
// Returns new client instance
71
func APIClient(apiCA ApiClientArgs) *ApiClient {
72
isPortDefault := false
73
- proxyUsed := true
+ proxyUsed := false
74
75
if apiCA.Port == -1 || apiCA.Port == DefaultPort {
76
apiCA.Port = DefaultPort
77
isPortDefault = true
78
}
79
- if apiCA.ProxyPort == DefaultProxyPort && apiCA.ProxyHost == DefaultProxyHost {
80
- proxyUsed = false
+ if apiCA.ProxyPort != DefaultProxyPort && apiCA.ProxyHost != DefaultProxyHost {
+ proxyUsed = true
81
82
83
// The context of using the client - defaults to web api
0 commit comments