Skip to content

fix: sshconfig parse: lowercase keys - #208

Merged
caarlos0 merged 2 commits into
mainfrom
fix-config
Jul 31, 2023
Merged

caarlos0 merged 2 commits into
mainfrom
fix-config

Conversation

@caarlos0

Copy link
Copy Markdown
Contributor

fixes #207

we're checking strictly HostName, so Hostname wasn't getting parsed properly.

This lowercases the key and checks it against the lowercased keywords, which seems more similar to what openssh does.

@caarlos0 caarlos0 added the bug Something isn't working label Jul 31, 2023
@caarlos0
caarlos0 requested a review from aymanbagabas July 31, 2023 13:30
@caarlos0 caarlos0 self-assigned this Jul 31, 2023
@caarlos0
caarlos0 merged commit b05a385 into main Jul 31, 2023
@caarlos0
caarlos0 deleted the fix-config branch July 31, 2023 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No such host when trying to connect

2 participants

⌂ 换网址