mirror of
https://github.com/bolucat/Archive.git
synced 2025-09-26 20:21:35 +08:00
Update On Mon Sep 22 20:36:25 CEST 2025
This commit is contained in:
@@ -1009,12 +1009,13 @@ function handleGenKey(option) {
|
||||
});
|
||||
|
||||
if (typeof option === 'object') {
|
||||
return callMihomoGenerator(option.type, option.params).then((ret) => {
|
||||
if (ret.result)
|
||||
for (let key in option.result)
|
||||
widget(option.result[key]).value = ret.result[key] ?? '';
|
||||
return callMihomoGenerator(option.type, option.params).then((res) => {
|
||||
if (res.result)
|
||||
option.callback.call(this, res.result).forEach(([k, v]) => {
|
||||
widget(k).value = v ?? '';
|
||||
});
|
||||
else
|
||||
ui.addNotification(null, E('p', _('Failed to generate %s, error: %s.').format(type, ret.error)));
|
||||
ui.addNotification(null, E('p', _('Failed to generate %s, error: %s.').format(type, res.error)));
|
||||
});
|
||||
} else {
|
||||
let password, required_method;
|
||||
@@ -1037,7 +1038,7 @@ function handleGenKey(option) {
|
||||
break;
|
||||
/* DEFAULT */
|
||||
default:
|
||||
password = generateRand('hex', 16);
|
||||
password = generateRand('hex', 32/2);
|
||||
break;
|
||||
}
|
||||
/* AEAD */
|
||||
|
@@ -550,9 +550,11 @@ return view.extend({
|
||||
so.hm_options = {
|
||||
type: 'ech-keypair',
|
||||
params: '',
|
||||
result: {
|
||||
ech_key: so.option,
|
||||
ech_cfg: 'tls_ech_cfg'
|
||||
callback: function(result) {
|
||||
return [
|
||||
[this.option, result.ech_key],
|
||||
['tls_ech_cfg', result.ech_cfg]
|
||||
]
|
||||
}
|
||||
}
|
||||
so.renderWidget = function(section_id, option_index, cfgvalue) {
|
||||
|
@@ -374,9 +374,11 @@ return view.extend({
|
||||
o.hm_options = {
|
||||
type: 'ech-keypair',
|
||||
params: '',
|
||||
result: {
|
||||
ech_key: o.option,
|
||||
ech_cfg: 'tls_ech_config'
|
||||
callback: function(result) {
|
||||
return [
|
||||
[this.option, result.ech_key],
|
||||
['tls_ech_config', result.ech_cfg]
|
||||
]
|
||||
}
|
||||
}
|
||||
o.renderWidget = function(section_id, option_index, cfgvalue) {
|
||||
@@ -425,20 +427,21 @@ return view.extend({
|
||||
o.modalonly = true;
|
||||
|
||||
o = s.taboption('field_tls', hm.GenValue, 'tls_reality_private_key', _('REALITY private key'));
|
||||
const tls_reality_public_key = 'tls_reality_public_key';
|
||||
o.hm_options = {
|
||||
type: 'reality-keypair',
|
||||
result: {
|
||||
private_key: o.option,
|
||||
public_key: tls_reality_public_key
|
||||
callback: function(result) {
|
||||
return [
|
||||
[this.option, result.private_key],
|
||||
['tls_reality_public_key', result.public_key]
|
||||
]
|
||||
}
|
||||
};
|
||||
}
|
||||
o.password = true;
|
||||
o.rmempty = false;
|
||||
o.depends('tls_reality', '1');
|
||||
o.modalonly = true;
|
||||
|
||||
o = s.taboption('field_tls', form.Value, tls_reality_public_key, _('REALITY public key'));
|
||||
o = s.taboption('field_tls', form.Value, 'tls_reality_public_key', _('REALITY public key'));
|
||||
o.depends('tls_reality', '1');
|
||||
o.modalonly = true;
|
||||
|
||||
|
@@ -30,13 +30,13 @@ define Download/geosite
|
||||
HASH:=1a7dad0ceaaf1f6d12fef585576789699bd1c6ea014c887c04b94cb9609350e9
|
||||
endef
|
||||
|
||||
GEOSITE_IRAN_VER:=202509150040
|
||||
GEOSITE_IRAN_VER:=202509220041
|
||||
GEOSITE_IRAN_FILE:=iran.dat.$(GEOSITE_IRAN_VER)
|
||||
define Download/geosite-ir
|
||||
URL:=https://github.com/bootmortis/iran-hosted-domains/releases/download/$(GEOSITE_IRAN_VER)/
|
||||
URL_FILE:=iran.dat
|
||||
FILE:=$(GEOSITE_IRAN_FILE)
|
||||
HASH:=20ee5b1bf5a10aea00aeb5b7e435ccf13cd578ef9ce55236fc7c0fdfd3f5b1f6
|
||||
HASH:=ddbdbfcc33e8eb6f235f7542cd71d291a9002387b8b858286e913d35e2d9aa02
|
||||
endef
|
||||
|
||||
define Package/v2ray-geodata/template
|
||||
|
Reference in New Issue
Block a user