|
|
@ -53,7 +53,9 @@ func findIdentityName(config Config, prog string, args []string) string { |
|
|
|
} |
|
|
|
identities := config.Identities |
|
|
|
host := extractHost(prog, args) |
|
|
|
for match, name := range identities { |
|
|
|
for _, identity := range identities { |
|
|
|
match := identity.Key.(string) |
|
|
|
name := identity.Value.(string) |
|
|
|
if strings.Contains(host, match) { |
|
|
|
return name |
|
|
|
} |
|
|
|