Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for filteredAlgos (0.22 sec)

  1. cmd/sftp-server.go

    func filterAlgos(arg string, want []string, allowed []string) []string {
    	var filteredAlgos []string
    	found := false
    	for _, algo := range want {
    		if len(algo) == 0 {
    			continue
    		}
    		for _, allowedAlgo := range allowed {
    			algo := strings.ToLower(strings.TrimSpace(algo))
    			if algo == allowedAlgo {
    				filteredAlgos = append(filteredAlgos, algo)
    				found = true
    				break
    			}
    		}
    		if !found {
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Tue Aug 20 20:00:29 UTC 2024
    - 16K bytes
    - Viewed (0)
Back to top