mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 07:49:41 +02:00
fix(endpoints): fix nil pointer dereference EE-5843 (#9969)
This commit is contained in:
parent
df47f3d8a8
commit
d7e83aad26
1 changed files with 1 additions and 1 deletions
|
@ -294,7 +294,7 @@ func shouldReloadTLSConfiguration(endpoint *portainer.Endpoint, payload *endpoin
|
||||||
// When updating Docker API environment, as long as TLS is true and TLSSkipVerify is false,
|
// When updating Docker API environment, as long as TLS is true and TLSSkipVerify is false,
|
||||||
// we assume that new TLS files have been uploaded and we need to reload the TLS configuration.
|
// we assume that new TLS files have been uploaded and we need to reload the TLS configuration.
|
||||||
if endpoint.Type != portainer.DockerEnvironment ||
|
if endpoint.Type != portainer.DockerEnvironment ||
|
||||||
!strings.HasPrefix(*payload.URL, "tcp://") ||
|
(payload.URL != nil && !strings.HasPrefix(*payload.URL, "tcp://")) ||
|
||||||
payload.TLS == nil || !*payload.TLS {
|
payload.TLS == nil || !*payload.TLS {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue