Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/pi-hole/pi-hole.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/pihole
diff options
context:
space:
mode:
authorDL6ER <dl6er@dl6er.de>2021-08-30 15:04:48 +0300
committerDL6ER <dl6er@dl6er.de>2021-08-30 15:04:48 +0300
commit31c7c019cb3c0678eeac4935cf770d7919587398 (patch)
tree166a46b61d4c23c0e58eeb2084c05510d5e7c9d5 /pihole
parentb97f76e678f81b767fba8feb229c7dc31d23e921 (diff)
Fix piping to pihole tricorder
Signed-off-by: DL6ER <dl6er@dl6er.de>
Diffstat (limited to 'pihole')
-rwxr-xr-xpihole27
1 files changed, 4 insertions, 23 deletions
diff --git a/pihole b/pihole
index e8fa9317..1fba6f4d 100755
--- a/pihole
+++ b/pihole
@@ -404,29 +404,10 @@ tricorderFunc() {
exit 1
fi
- if ! (echo > /dev/tcp/tricorder.pi-hole.net/9998) >/dev/null 2>&1; then
- echo -e " ${CROSS} Unable to connect to Pi-hole's Tricorder server"
- exit 1
- fi
-
- if command -v openssl &> /dev/null; then
- openssl s_client -quiet -connect tricorder.pi-hole.net:9998 2> /dev/null < /dev/stdin
- exit "$?"
- else
- echo -e " ${INFO} ${COL_YELLOW}Security Notice${COL_NC}: ${COL_WHITE}openssl${COL_NC} is not installed
- Your debug log will be transmitted unencrypted via plain-text
- There is a possibility that this could be intercepted by a third party
- If you wish to cancel, press Ctrl-C to exit within 10 seconds"
- secs="10"
- while [[ "$secs" -gt "0" ]]; do
- echo -ne "."
- sleep 1
- : $((secs--))
- done
- echo " "
- nc tricorder.pi-hole.net 9999 < /dev/stdin
- exit "$?"
- fi
+ curl --upload-file "-" https://tricorder.pi-hole.net/upload < /dev/stdin
+ ret=$?
+ echo ""
+ exit $ret
}
updateCheckFunc() {