Fix --stfp "mac-algos=..." overwrites cipher algorithms (#19643)

Setting MAC algorithms overwrites cipher algorithms.

Followup to #19636
This commit is contained in:
Klaus Post
2024-05-01 04:07:40 -07:00
committed by GitHub
parent a75f42344b
commit 0e2148264a
2 changed files with 5 additions and 5 deletions

View File

@@ -196,7 +196,7 @@ func startSFTPServer(args []string) {
case "cipher-algos":
allowCiphers = filterAlgos(arg, strings.Split(tokens[1], ","), supportedCiphers)
case "mac-algos":
allowCiphers = filterAlgos(arg, strings.Split(tokens[1], ","), supportedMACs)
allowMACs = filterAlgos(arg, strings.Split(tokens[1], ","), supportedMACs)
}
}