From 4bfefd04f55eb36a4d3e75f3cb07ebf4753e4024 Mon Sep 17 00:00:00 2001 From: blueveryday Date: Fri, 20 Sep 2024 22:02:33 +0800 Subject: [PATCH] ddns-go: add dns option --- net/ddns-go/Makefile | 2 +- net/ddns-go/files/ddns-go.init | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/net/ddns-go/Makefile b/net/ddns-go/Makefile index 508cf1b6e2..5b6e028358 100644 --- a/net/ddns-go/Makefile +++ b/net/ddns-go/Makefile @@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=ddns-go PKG_VERSION:=6.7.0 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://codeload.github.com/jeessy2/ddns-go/tar.gz/v$(PKG_VERSION)? diff --git a/net/ddns-go/files/ddns-go.init b/net/ddns-go/files/ddns-go.init index d9ff866a1d..8e9bde66a4 100644 --- a/net/ddns-go/files/ddns-go.init +++ b/net/ddns-go/files/ddns-go.init @@ -15,9 +15,10 @@ start_service() { config_get_bool enabled "config" "enabled" "0" [ "$enabled" -eq "1" ] || return 1 - local listen ttl noweb insecure + local listen ttl dns noweb insecure config_get listen "config" "listen" "[::]:9876" config_get ttl "config" "ttl" "300" + config_get dns "config" "dns" config_get_bool noweb "config" "noweb" "0" config_get_bool insecure "config" "insecure" "0" @@ -30,6 +31,7 @@ start_service() { procd_append_param command -c "$YAML" procd_append_param command -l "$listen" procd_append_param command -f "$ttl" + [ -z "$dns" ] || procd_append_param command -dns "$dns" [ "$noweb" -eq "0" ] || procd_append_param command -noweb [ "$insecure" -eq "0" ] || procd_append_param command -skipVerify