Ensure loading of host defs in ssh config file is case insensitive

This commit is contained in:
duncan_ferguson 2008-01-25 09:46:29 +00:00
parent 2a5fc7e686
commit fca92a477b
2 changed files with 6 additions and 1 deletions

View file

@ -371,7 +371,7 @@ sub check_ssh_hostnames {
if ( -r $ssh_config && open( SSHCFG, "<", $ssh_config ) ) {
while (<SSHCFG>) {
next unless (m/^\s*host\s+([\w\.-]+)/);
next unless (m/^\s*host\s+([\w\.-]+)/i);
$ssh_hostnames{$1} = 1;
}
close(SSHCFG);