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

wireguard-registration: on openwrt24.10 the https check prints to stderr #144

Merged
merged 1 commit into from
Dec 15, 2024

Conversation

maurerle
Copy link
Member

We therefore pipe the output to /dev/null so that the below error message does not appear in logread output.

The Error message is:
SSL error: NET - Sending information through the socket failed

The returncode behavior stays the same otherwise.

@maurerle maurerle requested a review from grische December 15, 2024 19:51
wget -q "https://[::1]"
if [ $? -eq 1 ]; then
ret=0
wget -q "https://[::1]" 2>/dev/null || ret=$?
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do you introduce the ret instead of having the original code?

Copy link
Member Author

Choose a reason for hiding this comment

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

To make this passage more similar. We can of course also switch to the other way around or keep the difference.
Whatever you like better :)

Copy link
Contributor

Choose a reason for hiding this comment

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

The || ret= is necessary if the script uses set -e and otherwise the old code is fine.

Just wondering if this additional complexity is worth it?

Error message is:
SSL error: NET - Sending information through the socket failed
The returncode behavior stays the same otherwise
@maurerle maurerle force-pushed the silence_https_check branch from ee5bc04 to a94dc26 Compare December 15, 2024 21:27
@maurerle maurerle merged commit 35ec27a into master Dec 15, 2024
5 checks passed
@maurerle maurerle deleted the silence_https_check branch December 15, 2024 22:32
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