https-dns-proxy: add mdns service records
authorStan Grishin <stangri@melmac.ca>
Wed, 7 Dec 2022 20:59:28 +0000 (20:59 +0000)
committerStan Grishin <stangri@melmac.ca>
Wed, 7 Dec 2022 21:00:08 +0000 (21:00 +0000)
* add mdns records for started instances
* Makefile: use $(PKG_VERSION) as a value for PKG_SOURCE_DATE instead of
  hard-coding it

Signed-off-by: Stan Grishin <stangri@melmac.ca>
net/https-dns-proxy/Makefile
net/https-dns-proxy/files/https-dns-proxy.init

index 81b01e5b90af5c0df55cae1db64e8d60bda6a661..a91a3d1cd72b472c09a3070693981a84f1cc7705 100644 (file)
@@ -2,11 +2,11 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=https-dns-proxy
 PKG_VERSION:=2022-10-15
-PKG_RELEASE:=8
+PKG_RELEASE:=9
 
 PKG_SOURCE_PROTO:=git
 PKG_SOURCE_URL:=https://github.com/aarond10/https_dns_proxy/
-PKG_SOURCE_DATE:=2022-10-15
+PKG_SOURCE_DATE:=$(PKG_VERSION)
 PKG_SOURCE_VERSION:=f52a85f3edabecfbab41d9244c63a1c6b8aaf49b
 PKG_MIRROR_HASH:=dd8a55255e8859a462fcfd736577fec40731b39a4783325640518745009b0dee
 PKG_MAINTAINER:=Stan Grishin <stangri@melmac.ca>
index cae80f161ef3a8a1d44bb053cf885883d42c0b9d..201ddadc721824e397c0bd09e6a52c5b522bd51a 100755 (executable)
@@ -153,6 +153,7 @@ start_instance() {
        procd_set_param stdout 1
        procd_set_param respawn
        procd_open_data
+       procd_add_mdns_service "$packageName" 'udp' "$port" "DNS over HTTPS proxy"
        json_add_string url "$url"
        if [ "$force_dns" -ne 0 ]; then
                json_add_array firewall