Skip to content

Commit

Permalink
Merge pull request #144 from freifunk-gluon/silence_https_check
Browse files Browse the repository at this point in the history
wireguard-registration: on openwrt24.10 the https check prints to stderr
  • Loading branch information
maurerle authored Dec 15, 2024
2 parents eed6d79 + a94dc26 commit 35ec27a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ if [ "$(uci get gluon.mesh_vpn.enabled)" = "true" ] || [ "$(uci get gluon.mesh_v
# check if registration has been done since last boot
if [ ! -f /tmp/WG_REGISTRATION_SUCCESSFUL ]; then
# Push public key to broker, test for https and use if supported
wget -q "https://[::1]"
wget -q "https://[::1]" 2>/dev/null
# returns Network Failure =4 if https exists
# and Generic Error =1 if no ssl lib available
if [ $? -eq 1 ]; then
PROTO=http
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ SEGMENT=$(uci get gluon.core.domain)

# Push public key to broker and receive gateway data, test for https and use if supported
ret=0
wget -q "https://[::1]" || ret=$?
wget -q "https://[::1]" 2>/dev/null || ret=$?
# returns Network Failure =4 if https exists
# and Generic Error =1 if no ssl lib available
if [ "$ret" -eq 1 ]; then
Expand Down

0 comments on commit 35ec27a

Please sign in to comment.