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

lprint.c: Enable TLS support in Web UI #151

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

zdohnal
Copy link
Contributor

@zdohnal zdohnal commented Jul 30, 2024

Currently (1.3.1) there is no way how to turn TLS web UI pages, because system callback does not set WEB_TLS option by default, and checks only for no-tls when processing server options.

This can be fixed by two way, depending on which default settings we prefer. The PR enables TLS pages by default, leaving to user whether he wants them to be disabled.

Do let me know if you would prefer the other way around.

Copy link
Owner

@michaelrsweet michaelrsweet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should probably enable by default but disable when the "no-tls" option is used.

@michaelrsweet michaelrsweet self-assigned this Jul 30, 2024
@michaelrsweet michaelrsweet added bug Something isn't working priority-low labels Jul 30, 2024
@michaelrsweet michaelrsweet added this to the Stable milestone Jul 30, 2024
@zdohnal
Copy link
Contributor Author

zdohnal commented Aug 6, 2024

@michaelrsweet thanks! It should be okay now.

@zdohnal zdohnal requested a review from michaelrsweet August 6, 2024 13:17
lprint.c Outdated Show resolved Hide resolved
Copy link
Owner

@michaelrsweet michaelrsweet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need a little cleanup but otherwise +1

@zdohnal
Copy link
Contributor Author

zdohnal commented Aug 30, 2024

I was not able to come up with one line expression which would be readable for me, feel free to check.

lprint.c Outdated Show resolved Hide resolved
Currently (1.3.1) there is no way how to turn TLS web UI pages, because
system callback does not set WEB_TLS option by default, and checks only
for `no-tls` when processing server options.

This can be fixed by two way, depending on which default settings we
prefer. The PR enables TLS pages by default, leaving to user whether he
wants them to be disabled. Disabling is done by removing WEB_TLS from
PAPPL options and adding NO_TLS instead.
@michaelrsweet michaelrsweet merged commit e78fbc4 into michaelrsweet:master Nov 14, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority-low
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants