natmap: allow binding to a port or port range
authorRay Wang <r@hev.cc>
Fri, 16 Aug 2024 14:40:45 +0000 (22:40 +0800)
committerTianling Shen <cnsztl@gmail.com>
Fri, 16 Aug 2024 15:23:09 +0000 (23:23 +0800)
Signed-off-by: Ray Wang <r@hev.cc>
(cherry picked from commit 5a33fe052479f1ac7f607fc098c5154aa571eb2a)

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 ea3e6c8b8571bce0283672eda90283a6043db19c..826bcb44c8bc2af9c4a27b92fe563bf166510dfd 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' \