[PATCH 1/1] RFC: Add STUN enable/disable, STUN host&port menu options to luci-app-upnp

Aaron Tiensivu atiensivu at gmail.com
Sat Jul 11 17:01:00 EDT 2020


Pretty straightforward. The /etc/init.d/miniupnpd already picks up
these values if you populate them with UCI or within the /etc/config
text file.
This just exposes them to the web interface.

I've read submission guidelines and if I have done something in error,
let me know.


--- a/www/luci-static/resources/view/upnp/upnp.js 2020-07-11
16:52:19.000061773 -0400
+++ b/www/luci-static/resources/view/upnp/upnp.js 2020-07-11
16:53:46.096604388 -0400
@@ -167,6 +167,15 @@
  o = s.taboption('advanced', form.Value, 'upnp_lease_file', _('UPnP
lease file'))
  o.placeholder = '/var/run/miniupnpd.leases'

+ s.taboption('advanced', form.Flag, 'use_stun', _('Use STUN')).default = '0'
+
+ o = s.taboption('advanced', form.Value, 'stun_host', _('STUN host'))
+ o.placeholder = 'stun.stunprotocol.org'
+
+ o = s.taboption('advanced', form.Value, 'stun_port', _('STUN port'))
+ o.datatype    = 'uinteger'
+ o.placeholder = 3478
+
  s = m.section(form.GridSection, 'perm_rule', _('MiniUPnP ACLs'),
  _('ACLs specify which external ports may be redirected to which
internal addresses and ports'))
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-luci-app-upnp-add-STUN-git-20.172.67167-b397549.patch
Type: application/octet-stream
Size: 824 bytes
Desc: not available
URL: <http://lists.openwrt.org/pipermail/openwrt-devel/attachments/20200711/80b3f634/attachment.obj>


More information about the openwrt-devel mailing list