1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-15 03:51:51 +00:00

Merge pull request #252 from Ysurac/develop

sync
This commit is contained in:
suyuan 2022-07-05 11:25:32 +08:00 committed by GitHub
commit 6b1f1b1342
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 0 deletions

View file

@ -97,6 +97,9 @@ else
end
s = m:section(TypedSection, "interface", translate("Interfaces Settings"))
function s.filter(self, section)
return not section:match("^oip.*") and not section:match("^lo.*") and section ~= "omrvpn" and section ~= "omr6in4"
end
o = s:option(ListValue, "multipath", translate("Multipath TCP"), translate("One interface must be set as master"))
o:value("on", translate("enabled"))
o:value("off", translate("disabled"))

View file

@ -622,6 +622,23 @@ return baseclass.extend({
o = this.replaceOption(s, 'devadvanced', form.Flag, 'promisc', _('Enable promiscuous mode'));
o.default = o.disabled;
o = this.replaceOption(s, 'devadvanced', form.Flag, 'autoneg', _('Autonegociation'));
o.default = o.enabled;
o = this.replaceOption(s, 'devadvanced', form.Value, 'speed', _('Speed'));
o.placeholder = dev ? dev.getSpeed() : '';
o.default = '';
o.rmempty = true;
o.datatype = 'uinteger';
o.depends('autoneg', '0');
o = this.replaceOption(s, 'devadvanced', form.ListValue, 'duplex', _('Duplex'));
o.default = '';
o.value('', _('unknown'));
o.value('half', _('half'));
o.value('full', _('full'));
o.depends('autoneg', '0');
o = this.replaceOption(s, 'devadvanced', form.ListValue, 'rpfilter', _('Reverse path filter'));
o.default = '';
o.value('', _('disabled'));