mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-04 10:33:56 +08:00
🎁 Sync 2026-08-05 20:25:34
This commit is contained in:
1 parent
e71d910024
commit
ca3fdb1643
31 files changed
+374
-113
No files matched your search
@@ -890,14 +890,6 @@ return view.extend({
|
||||
so.depends('type', 'zerotier');
|
||||
so.modalonly = true;
|
||||
|
||||
so = ss.taboption('field_general', form.ListValue, 'zerotier_ipstack', _('IP stack'));
|
||||
so.value('', _('Keep default'));
|
||||
so.value('auto', _('Auto'));
|
||||
so.value('gvisor', _('gVisor'));
|
||||
so.value('mips', _('mihomo IP stack (MIPS)'));
|
||||
so.depends('type', 'zerotier');
|
||||
so.modalonly = true;
|
||||
|
||||
/* WireGuard fields */
|
||||
so = ss.taboption('field_general', hm.GenValue, 'wireguard_private_key', _('Private key'),
|
||||
_('WireGuard requires base64-encoded private keys.'));
|
||||
@@ -1048,6 +1040,14 @@ return view.extend({
|
||||
so.modalonly = true;
|
||||
|
||||
/* Extra fields */
|
||||
so = ss.taboption('field_general', form.ListValue, 'ipstack', _('IP stack'));
|
||||
so.value('', _('Keep default'));
|
||||
so.value('auto', _('Auto'));
|
||||
so.value('gvisor', _('gVisor'));
|
||||
so.value('mips', _('mihomo IP stack (MIPS)'));
|
||||
so.depends({type: /^(zerotier|wireguard|masque|openvpn)$/});
|
||||
so.modalonly = true;
|
||||
|
||||
so = ss.taboption('field_general', form.ListValue, 'congestion_controller', _('Congestion controller'));
|
||||
so.default = hm.congestion_controller[0][0];
|
||||
hm.congestion_controller.forEach((res) => {
|
||||
@@ -1055,7 +1055,7 @@ return view.extend({
|
||||
})
|
||||
so.depends({type: /^(tuic|shadowquic|trusttunnel)$/});
|
||||
so.depends({type: 'masque', masque_network: /^(|h3-l4proxy)$/});
|
||||
so.depends({type: 'zerotier', zerotier_ipstack: /^(auto|mips)$/}); // not empty not gvisor
|
||||
so.depends({ipstack: /^(auto|mips)$/}); // not empty not gvisor
|
||||
so.modalonly = true;
|
||||
|
||||
so = ss.taboption('field_general', form.ListValue, 'bbr_profile', _('BBR profile'));
|
||||
|
||||
Reference in new issue
Block a user