Skip to content

Commit ea6050a

Browse files
committed
MINOR: avoid duplicate force-sslv3 on server serialization
1 parent de46544 commit ea6050a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

configuration/server.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -639,16 +639,13 @@ func SerializeServerParams(s models.ServerParams, opt *options.ConfigurationOpti
639639
} else if s.Renegotiate == "disabled" {
640640
options = append(options, &params.ServerOptionWord{Name: "no-renegotiate"})
641641
}
642-
if s.Sslv3 == "enabled" {
642+
if s.Sslv3 == "enabled" || s.ForceSslv3 == "enabled" {
643643
options = append(options, &params.ServerOptionWord{Name: "force-sslv3"})
644644
}
645645
if s.Sslv3 == "disabled" ||
646646
s.NoSslv3 == "enabled" { // deprecated, keeping the behavior, for backward compatibility. Can be removed when field is removed
647647
options = append(options, &params.ServerOptionWord{Name: "no-sslv3"})
648648
}
649-
if s.ForceSslv3 == "enabled" {
650-
options = append(options, &params.ServerOptionWord{Name: "force-sslv3"})
651-
}
652649
if s.ForceSslv3 == "disabled" ||
653650
s.NoSslv3 == "enabled" { // deprecated, keeping the behavior, for backward compatibility. Can be removed when field is removed
654651
options = append(options, &params.ServerOptionWord{Name: "no-sslv3"})

0 commit comments

Comments
 (0)