Skip to content

Commit

Permalink
Update managed/models/agent_model.go
Browse files Browse the repository at this point in the history
Co-authored-by: Nurlan Moldomurov <[email protected]>
  • Loading branch information
JiriCtvrtka and BupycHuk authored Jun 5, 2024
1 parent 464643a commit d974158
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion managed/models/agent_model.go
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ func (s *Agent) DSN(service *Service, dsnParams DSNParams, tdp *DelimiterPair, p
// Skip verify for "custom" is handled on pmm-agent side.
switch {
// Backward compatibility
case pmmAgentVersion != nil && s.TLSSkipVerify && pmmAgentVersion.Less(v2_42):
case s.TLSSkipVerify && (pmmAgentVersion == nil || pmmAgentVersion.Less(v2_42)):
cfg.Params["tls"] = skipVerify
case len(s.Files()) != 0:
cfg.Params["tls"] = "custom"
Expand Down

0 comments on commit d974158

Please sign in to comment.