diff --git a/config.go b/config.go index 533b460..7b82b1b 100644 --- a/config.go +++ b/config.go @@ -861,8 +861,9 @@ func init() { } } -func newConfig() *Config { +func newConfig(ignoreMatchDirective bool) *Config { return &Config{ + ignoreMatchDirective: ignoreMatchDirective, Hosts: []*Host{ &Host{ implicit: true, diff --git a/parser.go b/parser.go index ed30810..e61feb5 100644 --- a/parser.go +++ b/parser.go @@ -187,7 +187,7 @@ func parseSSH(flow chan token, system, ignoreMatchDirective bool, depth uint8) * } }() - result := newConfig() + result := newConfig(ignoreMatchDirective) result.position = Position{1, 1} parser := &sshParser{ ignoreMatchDirective: ignoreMatchDirective,