mirror of
https://github.com/wavetermdev/ssh_config.git
synced 2026-08-05 13:43:40 -07:00
fix: persist ignoreMatchDirective to included file (#6)
The ignoreMatchDirective flag did not exist in the newConfig function. Because this function is called when generating a config for connections in an included file, those connections automatically assumed the value was false. This change adds the flag so it can be changed to true if it is also set for the outer configuration.
This commit is contained in:
@@ -861,8 +861,9 @@ func init() {
|
||||
}
|
||||
}
|
||||
|
||||
func newConfig() *Config {
|
||||
func newConfig(ignoreMatchDirective bool) *Config {
|
||||
return &Config{
|
||||
ignoreMatchDirective: ignoreMatchDirective,
|
||||
Hosts: []*Host{
|
||||
&Host{
|
||||
implicit: true,
|
||||
|
||||
Reference in New Issue
Block a user