luci-app-antiblock: Gateway selection bug fixed

1) Changed from "widgets.NetworkSelect" to "widgets.DeviceSelect"

Signed-off-by: Khachatryan Karen <karen0734@gmail.com>
This commit is contained in:
Khachatryan Karen 2025-04-04 18:10:10 +03:00 committed by Paul Donald
parent 4921920821
commit e6556e97fb
1 changed files with 2 additions and 1 deletions

View File

@ -13,9 +13,10 @@ return view.extend({
s.addremove = true;
s.nodescriptions = true;
let o = s.option(widgets.NetworkSelect, 'gateway', _('Gateway'), _('Gateway'));
let o = s.option(widgets.DeviceSelect, 'gateway', _('Gateway'), _('Gateway'));
o.loopback = true;
o.nocreate = true;
o.noaliases = true;
o = s.option(form.Value, 'domains_path', _('Domains path'), _('Domains path/URL. If you want to add domains via LuCI, specify the files in the /etc/antiblock folder.'));
o.default = '/etc/antiblock/';