Skip to content

Commit

Permalink
fix: AutoIssueCert loses control in dfdaemon(dragonflyoss#3422)
Browse files Browse the repository at this point in the history
  • Loading branch information
karlhjm committed Aug 8, 2024
1 parent 890bdbc commit ce9565c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/daemon/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,13 +151,13 @@ func New(opt *config.DaemonOption, d dfpath.Dfpath) (Daemon, error) {
if opt.Scheduler.Manager.Enable {
var grpcCredentials credentials.TransportCredentials

if opt.Security.CACert == "" {
grpcCredentials = insecure.NewCredentials()
} else {
if opt.Security.AutoIssueCert {
grpcCredentials, err = loadManagerGPRCTLSCredentials(opt.Security)
if err != nil {
return nil, err
}
} else {
grpcCredentials = insecure.NewCredentials()
}

managerClient, err = managerclient.GetV1ByNetAddrs(
Expand Down

0 comments on commit ce9565c

Please sign in to comment.