mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 21:24:31 +04:00
tang: tang-show-keys uses wget instead of curl
Resolves: #15592 Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
This commit is contained in:
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=tang
|
PKG_NAME:=tang
|
||||||
PKG_VERSION:=14
|
PKG_VERSION:=14
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
||||||
PKG_SOURCE_URL:=https://github.com/latchset/$(PKG_NAME)/releases/download/v$(PKG_VERSION)/
|
PKG_SOURCE_URL:=https://github.com/latchset/$(PKG_NAME)/releases/download/v$(PKG_VERSION)/
|
||||||
|
|||||||
13
utils/tang/patches/100-tang-show-keys-use-wget.patch
Normal file
13
utils/tang/patches/100-tang-show-keys-use-wget.patch
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/src/tang-show-keys b/src/tang-show-keys
|
||||||
|
index 0c33c3a..f017e84 100755
|
||||||
|
--- a/src/tang-show-keys
|
||||||
|
+++ b/src/tang-show-keys
|
||||||
|
@@ -27,7 +27,7 @@ fi
|
||||||
|
|
||||||
|
port=${1-80}
|
||||||
|
|
||||||
|
-adv=$(curl -sSf "localhost:$port/adv")
|
||||||
|
+adv=$(wget -qO- "http://127.0.0.1:$port/adv")
|
||||||
|
|
||||||
|
THP_DEFAULT_HASH=S256 # SHA-256.
|
||||||
|
jose fmt --json "${adv}" -g payload -y -o- \
|
||||||
Reference in New Issue
Block a user