blob: e79d2faa8f1abb3c783c113dafb80b19af8dd8ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
--- a/src/tang-show-keys
+++ b/src/tang-show-keys
@@ -25,17 +25,17 @@ if [ $# -gt 2 ]; then
exit 1
fi
-port=${1-80}
+port=${1-9090}
if test -n "$2"; then
first_letter=$(printf %.1s "$2")
if [ "${first_letter}" = "/" ]; then
- adv=$(curl -sSf "localhost:$port$2/adv")
+ adv=$(wget -qO- "http://127.0.0.1:$port$2/adv")
else
- adv=$(curl -sSf "localhost:$port/$2/adv")
+ adv=$(wget -qO- "http://127.0.0.1:$port/$2/adv")
fi
else
- adv=$(curl -sSf "localhost:$port/adv")
+ adv=$(wget -qO- "http://127.0.0.1:$port/adv")
fi
THP_DEFAULT_HASH=S256 # SHA-256.
|