mirror of
https://github.com/wavetermdev/ssh_config.git
synced 2026-08-05 13:43:40 -07:00
fix: match directive bypass for GetAll
The new ignoreMatchDirective flag needed to be added in one other place.
This commit is contained in:
@@ -457,7 +457,7 @@ func (c *Config) GetAll(alias, key string) ([]string, error) {
|
||||
case *KV:
|
||||
// "keys are case insensitive" per the spec
|
||||
lkey := strings.ToLower(t.Key)
|
||||
if lkey == "match" {
|
||||
if lkey == "match" && !c.ignoreMatchDirective {
|
||||
panic("can't handle Match directives")
|
||||
}
|
||||
if lkey == lowerKey {
|
||||
|
||||
Reference in New Issue
Block a user