update 2025-01-19 00:21:25

This commit is contained in:
kenzok8 2025-01-19 00:21:25 +08:00
parent 35219ef77e
commit 807643f119
3 changed files with 14 additions and 4 deletions

View File

@ -463,7 +463,7 @@ return view.extend({
o = s.taboption('inbound', form.SectionValue, '_inbound', form.NamedSection, 'inbound', 'fchomo', _('Tun settings'));
ss = o.subsection;
so = ss.option(form.RichListValue, 'tun_stack', _('Stack'),
so = ss.option(form.RichListValue || form.ListValue, 'tun_stack', _('Stack'),
_('Tun stack.'));
so.value('system', _('System'), _('Less compatibility and sometimes better performance.'));
if (features.with_gvisor) {
@ -472,6 +472,16 @@ return view.extend({
}
so.default = 'system';
so.rmempty = false;
if (!form.RichListValue)
so.onchange = function(ev, section_id, value) {
var desc = ev.target.nextSibling;
if (value === 'mixed')
desc.innerHTML = _('Mixed <code>system</code> TCP stack and <code>gVisor</code> UDP stack.');
else if (value === 'gvisor')
desc.innerHTML = _('Based on google/gvisor.');
else if (value === 'system')
desc.innerHTML = _('Less compatibility and sometimes better performance.');
}
so = ss.option(form.Value, 'tun_mtu', _('MTU'));
so.datatype = 'uinteger';

View File

@ -4,7 +4,7 @@ for d in certs provider ruleset resources templates; do
mkdir -p "/etc/fchomo/$d/" 2>/dev/null
done
if ! uci -q get fchomo.global.authentication; then
if ! uci -q get fchomo.global.authentication >/dev/null; then
uci add_list fchomo.global.authentication="fchomodef:$(cat /proc/sys/kernel/random/uuid)"
uci commit fchomo
fi

View File

@ -6,12 +6,12 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=v2ray-plugin
PKG_VERSION:=5.17.0
PKG_VERSION:=5.25.0
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/teddysun/v2ray-plugin/tar.gz/v$(PKG_VERSION)?
PKG_HASH:=035823fa70d0c7e6afa6cced6b9d6f8b29c05a5f28852ad5954e957b61337c9e
PKG_HASH:=64d2cc376c16ade97b8e2cce69e0c98d74f530dcf8a30cf7d22255969ca5c10d
PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=LICENSE