natmap: allow binding to a port or port range
authorRay Wang <[email protected]>
Fri, 16 Aug 2024 14:40:45 +0000 (22:40 +0800)
committerTianling Shen <[email protected]>
Fri, 16 Aug 2024 15:06:58 +0000 (23:06 +0800)
Signed-off-by: Ray Wang <[email protected]>
net/natmap/Makefile
net/natmap/files/natmap.init

index e4a366e76d60b854f9584190f025fe1843142a5f..63df5c6ce4b2f41f4cbc02ed17e4191f30335eb0 100644 (file)
@@ -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)
index 836b4f3a7aa2628fd991edf32aabe68700dba9d4..d0851ab6841b6cc316faf7620e1d790f4e370d3c 100644 (file)
@@ -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' \