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 serverside SetEnv inside Match blocks#201

Closed
wants to merge 2 commits into from

Conversation

manuelm
Copy link

@manuelm manuelm commented Sep 13, 2020

I noticed that serverside SetEnv keywords inside Match blocks isn't working. Looking at the commit history (2801375) it looks like adding the array to copy macro simply has been forgotten.

Further more it seems multiple statements inside the same context are not supported for no apparent reason. So I removed that as well.

@manuelm manuelm changed the title Fix serverside SetEnv Fix serverside SetEnv inside Match blocks Sep 13, 2020
@djmdjm
Copy link
Contributor

djmdjm commented Oct 29, 2020

Thanks, I have merged the first commit (via our OpenBSD upstream) but not the second.

I think ignoring previous successful setenv causes Match block setenv to be appended to ones set in the global configuration rather than the desired behaviour of overriding them. I need to think about it a little more....

@djmdjm
Copy link
Contributor

djmdjm commented Nov 8, 2020

It turns out that the first patch alone is sufficient to fix SetEnv inside match, as parse_server_match_config() always works on a new, empty ServerOptions object.

Thanks!

@djmdjm djmdjm closed this Nov 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants