Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: process multiple host entries #331

Merged
merged 1 commit into from
Aug 24, 2024

Conversation

CertainLach
Copy link
Contributor

PR #306 broke russh config parsing for me.

My ssh config looks roughly like this:

Host *
    Common settings
Host wanted
   Host-specific settings

Before #306 common settings were ignored, but after - common settings were applied, yet config parser stops right on next Host section start, so settings I need were ignored instead.

This PR brings behavior closer to what openssh itself does - for requested host, it applies all the settings with maching glob, not only the first one.

@CertainLach CertainLach force-pushed the fix/process-multiple-host-entries branch from d731237 to 9fa39a6 Compare August 24, 2024 12:56
@Eugeny
Copy link
Owner

Eugeny commented Aug 24, 2024

Thank you!

@Eugeny Eugeny merged commit d5b303c into Eugeny:main Aug 24, 2024
4 checks passed
@Eugeny
Copy link
Owner

Eugeny commented Aug 24, 2024

@all-contributors please add @CertainLach for code

Copy link
Contributor

@Eugeny

I've put up a pull request to add @CertainLach! 🎉

Eugeny pushed a commit that referenced this pull request Aug 24, 2024
Adds @CertainLach as a contributor for code.

This was requested by Eugeny [in this
comment](#331 (comment))

[skip ci]

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
@CertainLach CertainLach deleted the fix/process-multiple-host-entries branch August 24, 2024 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants