update 2024-08-10 20:32:44

This commit is contained in:
kenzok8 2024-08-10 20:32:44 +08:00
parent d5318c5af2
commit a7a3e7585a
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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'));