dhtd: update to 0.2.4

* add option to execute a script for each result

Signed-off-by: Moritz Warning <moritzwarning@web.de>
This commit is contained in:
Moritz Warning 2023-11-19 16:48:00 +01:00
parent 5ffdf3392f
commit 0f3a2070dc
3 changed files with 6 additions and 3 deletions

View File

@ -1,12 +1,12 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=dhtd
PKG_VERSION:=0.2.1
PKG_VERSION:=0.2.4
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/mwarning/dhtd/tar.gz/v$(PKG_VERSION)?
PKG_HASH:=65d2e0d6a3648fe3619d9fa4bef34a76c22577b7fe3fe460f96ac10510c3f06a
PKG_HASH:=0f35cd0016689682b277f9769ec1e95c3c1321479cedc9727abc0bc91a0427d5
PKG_MAINTAINER:=Moritz Warning <moritzwarning@web.de>
PKG_LICENSE:=MIT

View File

@ -15,6 +15,9 @@ config dhtd
list peer 'bttracker.debian.org:6881'
list peer 'router.bittorrent.com:6881'
## Execute a script for each result
# option execute '/root/on_result.sh'
## Bind the DHT to this port.
# option port '6881'

View File

@ -54,7 +54,7 @@ start_instance() {
OPTS=""
append_opts "$cfg" verbosity peerfile port
append_opts "$cfg" verbosity peerfile port execute
config_get ifname "$cfg" "ifname"
if network_get_device IFNAME "$ifname";then