(config: Configuration)
| 224 | ['localforward', 'LocalForward'] |
| 225 | ]); |
| 226 | function caseNormalizeConfigProps(config: Configuration): Configuration { |
| 227 | const caseNormalizeDirective: (entry: { param: string }) => void = |
| 228 | (entry: { param: string }) => entry.param = CASE_NORMALIZED_PROPS.get(entry.param.toLowerCase()) || entry.param; |
| 229 | |
| 230 | config.filter(isDirective).forEach(entry => { |
| 231 | caseNormalizeDirective(entry); |
| 232 | |
| 233 | // Only two levels deep |
| 234 | if (isHostDirective(entry)) { |
| 235 | entry.config.filter(isDirective).forEach(caseNormalizeDirective); |
| 236 | } |
| 237 | }); |
| 238 | |
| 239 | return config; |
| 240 | } |
| 241 | |
| 242 | function extractHosts(parsedConfig: Configuration): string[] { |
| 243 | const hosts: Set<string> = new Set<string>(); |
no test coverage detected