Skip to content

Commit

Permalink
ddns-go: add dns option
Browse files Browse the repository at this point in the history
  • Loading branch information
blueveryday authored and 1715173329 committed Sep 20, 2024
1 parent e76a4b1 commit 4bfefd0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion net/ddns-go/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)?
Expand Down
4 changes: 3 additions & 1 deletion net/ddns-go/files/ddns-go.init
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -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

Expand Down

0 comments on commit 4bfefd0

Please sign in to comment.