Skip to content

Commit

Permalink
Fix segfault in empty proxy.https when proxy.http is set
Browse files Browse the repository at this point in the history
  • Loading branch information
tomer-shefler committed Jan 16, 2024
1 parent 7139270 commit 2339494
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/settings_components_defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ func (r *CBContainersAgentController) setProxySettingsComponentsDefaults(proxy *
}

httpsProxyLen := 0
if proxy.HttpProxy != nil {
httpProxyLen = len(strings.TrimSpace(*(proxy.HttpsProxy)))
if proxy.HttpsProxy != nil {
httpsProxyLen = len(strings.TrimSpace(*(proxy.HttpsProxy)))
}

// Don't set NoProxySuffix default value if we don't have any proxies defined
Expand Down

0 comments on commit 2339494

Please sign in to comment.