diff --git a/luci-app-airconnect/Makefile b/luci-app-airconnect/Makefile index b90dfbbf2..652060ca6 100644 --- a/luci-app-airconnect/Makefile +++ b/luci-app-airconnect/Makefile @@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=luci-app-airconnect -PKG_VERSION:=1.0.1 +PKG_VERSION:=1.0.2 PKG_RELEASE:=1 LUCI_TITLE:=LuCI support for AirConnect diff --git a/luci-app-airconnect/htdocs/luci-static/resources/view/airconnect.js b/luci-app-airconnect/htdocs/luci-static/resources/view/airconnect.js index 9eedd963d..bc54fd515 100644 --- a/luci-app-airconnect/htdocs/luci-static/resources/view/airconnect.js +++ b/luci-app-airconnect/htdocs/luci-static/resources/view/airconnect.js @@ -65,6 +65,11 @@ return view.extend({ o = s.option(widgets.DeviceSelect, 'interface', _('Bind interface')); + o.filter = function(section_id, value) { + var dev = this.devices.filter(function(dev) { return dev.getName() == value })[0]; + var excludeDevice = ['docker', 'dummy', 'radio', 'sit', 'teql', 'veth', 'ztly']; + return (dev && dev.getName() != null && !excludeDevice.some(prefix => dev.getName().startsWith(prefix))); + } o.rmempty = false; o = s.option(form.Flag, 'airupnp', _('UPnP/Sonos'), _('Enable UPnP/Sonos Device Support'));