From b3f9730ae8bb795c81f10a68509ef2e1e9df4155 Mon Sep 17 00:00:00 2001 From: Ray Wang Date: Fri, 16 Aug 2024 22:40:45 +0800 Subject: [PATCH] natmap: allow binding to a port or port range Signed-off-by: Ray Wang (cherry picked from commit 5a33fe052479f1ac7f607fc098c5154aa571eb2a) --- net/natmap/Makefile | 2 +- net/natmap/files/natmap.init | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net/natmap/Makefile b/net/natmap/Makefile index e4a366e76d..63df5c6ce4 100644 --- a/net/natmap/Makefile +++ b/net/natmap/Makefile @@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=natmap PKG_VERSION:=20240813 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://github.com/heiher/natmap/releases/download/$(PKG_VERSION) diff --git a/net/natmap/files/natmap.init b/net/natmap/files/natmap.init index ea3e6c8b85..826bcb44c8 100644 --- a/net/natmap/files/natmap.init +++ b/net/natmap/files/natmap.init @@ -24,7 +24,7 @@ validate_section_natmap() { 'interval:uinteger' \ 'stun_server:host' \ 'http_server:host' \ - 'port:portrange' \ + 'port:or(port,portrange)' \ 'forward_target:host' \ 'forward_port:port' \ 'notify_script:file' \ -- 2.30.2