Skip to content

Commit a78d3d1

Browse files
ivanmatmatioktalz
authored andcommitted
BUG: SslDefaultDhParam should get default value if needed
1 parent 54820fc commit a78d3d1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/controller/global.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,10 @@ func (c *HAProxyController) globalCfg() {
8181
}
8282
if newGlobal.TuneOptions == nil {
8383
newGlobal.TuneOptions = &models.GlobalTuneOptions{}
84+
}
8485

85-
if newGlobal.TuneSslDefaultDhParam == 0 {
86-
newGlobal.TuneOptions.SslDefaultDhParam = 2048
87-
}
86+
if newGlobal.TuneSslDefaultDhParam == 0 {
87+
newGlobal.TuneOptions.SslDefaultDhParam = 2048
8888
}
8989
env.SetGlobal(newGlobal, &newLg, c.haproxy.Env)
9090
diff := newGlobal.Diff(*global)

0 commit comments

Comments
 (0)