Skip to content

Commit e4cbaec

Browse files
committed
changed proxy default to be false
1 parent f149ae5 commit e4cbaec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

APIFiles/APIClient.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,14 @@ type ApiClient struct {
7070
// Returns new client instance
7171
func APIClient(apiCA ApiClientArgs) *ApiClient {
7272
isPortDefault := false
73-
proxyUsed := true
73+
proxyUsed := false
7474

7575
if apiCA.Port == -1 || apiCA.Port == DefaultPort {
7676
apiCA.Port = DefaultPort
7777
isPortDefault = true
7878
}
79-
if apiCA.ProxyPort == DefaultProxyPort && apiCA.ProxyHost == DefaultProxyHost {
80-
proxyUsed = false
79+
if apiCA.ProxyPort != DefaultProxyPort && apiCA.ProxyHost != DefaultProxyHost {
80+
proxyUsed = true
8181
}
8282

8383
// The context of using the client - defaults to web api

0 commit comments

Comments
 (0)