luci-app-natmap: change bind port data type from port to portrange
authorRay Wang <r@hev.cc>
Tue, 13 Aug 2024 16:05:51 +0000 (00:05 +0800)
committerPaul Donald <newtwen+github@gmail.com>
Thu, 15 Aug 2024 09:45:53 +0000 (11:45 +0200)
Signed-off-by: Ray Wang <r@hev.cc>
applications/luci-app-natmap/htdocs/luci-static/resources/view/natmap.js

index 14dea3aa1941198a8b684b1f3ce131d0c7e4f771..e837fbf2a9df7be385392ffa4dd017ff9fd4a9b6 100644 (file)
@@ -91,7 +91,7 @@ return view.extend({
                o.rmempty = false;
 
                o = s.option(form.Value, 'port', _('Bind port'));
-               o.datatype = 'port';
+               o.datatype = 'portrange';
                o.rmempty = false;
 
                o = s.option(form.Flag, '_forward_mode', _('Forward mode'));