@@ -336,7 +336,7 @@ export default {
336336
337337 if ( 协议类型 === 'ss' && ! 作为优选订阅生成器 ) {
338338 完整节点路径 = ( 完整节点路径 . includes ( '?' ) ? 完整节点路径 . replace ( '?' , '?enc=' + config_JSON . SS . 加密方式 + '&' ) : ( 完整节点路径 + '?enc=' + config_JSON . SS . 加密方式 ) ) . replace ( / ( [ = , ] ) / g, '\\$1' ) ;
339- if ( ! isSubConverterRequest ) 完整节点路径 = 完整节点路径 + ';mux=false ' ;
339+ if ( ! isSubConverterRequest ) 完整节点路径 = 完整节点路径 + ';mux=0 ' ;
340340 return `${ 协议类型 } ://${ btoa ( config_JSON . SS . 加密方式 + ':00000000-0000-4000-8000-000000000000' ) } @${ 节点地址 } :${ 节点端口 } ?plugin=v2${ encodeURIComponent ( 'ray-plugin;mode=websocket;host=example.com;path=' + ( config_JSON . 随机路径 ? 随机路径 ( 完整节点路径 ) : 完整节点路径 ) + ( config_JSON . SS . TLS ? ';tls' : '' ) ) + ECHLINK参数 + TLS分片参数 } #${ encodeURIComponent ( 节点备注 ) } ` ;
341341 } else return `${ 协议类型 } ://00000000-0000-4000-8000-000000000000@${ 节点地址 } :${ 节点端口 } ?security=tls&type=${ 传输协议 + ECHLINK参数 } &${ 域名字段名 } =example.com&fp=${ config_JSON . Fingerprint } &sni=example.com&${ 路径字段名 } =${ encodeURIComponent ( 作为优选订阅生成器 ? '/' : ( config_JSON . 随机路径 ? 随机路径 ( 完整节点路径 ) : 完整节点路径 ) ) + TLS分片参数 } &encryption=none${ config_JSON . 跳过证书验证 ? '&insecure=1&allowInsecure=1' : '' } #${ encodeURIComponent ( 节点备注 ) } ` ;
342342 } ) . filter ( item => item !== null ) . join ( '\n' ) ;
@@ -2677,7 +2677,7 @@ async function 读取config_JSON(env, hostname, userID, UA = "Mozilla/5.0", 重
26772677 if ( ! config_JSON . ECHConfig ) config_JSON . ECHConfig = { DNS : Ali_DoH , SNI : ECH_SNI } ;
26782678 const ECHLINK参数 = config_JSON . ECH ? `&ech=${ encodeURIComponent ( ( config_JSON . ECHConfig . SNI ? config_JSON . ECHConfig . SNI + '+' : '' ) + config_JSON . ECHConfig . DNS ) } ` : '' ;
26792679 config_JSON . LINK = config_JSON . 协议类型 === 'ss'
2680- ? `${ config_JSON . 协议类型 } ://${ btoa ( config_JSON . SS . 加密方式 + ':' + userID ) } @${ host } :${ config_JSON . SS . TLS ? '443' : '80' } ?plugin=v2${ encodeURIComponent ( `ray-plugin;mode=websocket;host=${ host } ;path=${ ( ( config_JSON . 完整节点路径 . includes ( '?' ) ? config_JSON . 完整节点路径 . replace ( '?' , '?enc=' + config_JSON . SS . 加密方式 + '&' ) : ( config_JSON . 完整节点路径 + '?enc=' + config_JSON . SS . 加密方式 ) ) + ( config_JSON . SS . TLS ? ';tls' : '' ) ) } ;mux=false ` ) + ECHLINK参数 } #${ encodeURIComponent ( config_JSON . 优选订阅生成 . SUBNAME ) } `
2680+ ? `${ config_JSON . 协议类型 } ://${ btoa ( config_JSON . SS . 加密方式 + ':' + userID ) } @${ host } :${ config_JSON . SS . TLS ? '443' : '80' } ?plugin=v2${ encodeURIComponent ( `ray-plugin;mode=websocket;host=${ host } ;path=${ ( ( config_JSON . 完整节点路径 . includes ( '?' ) ? config_JSON . 完整节点路径 . replace ( '?' , '?enc=' + config_JSON . SS . 加密方式 + '&' ) : ( config_JSON . 完整节点路径 + '?enc=' + config_JSON . SS . 加密方式 ) ) + ( config_JSON . SS . TLS ? ';tls' : '' ) ) } ;mux=0 ` ) + ECHLINK参数 } #${ encodeURIComponent ( config_JSON . 优选订阅生成 . SUBNAME ) } `
26812681 : `${ config_JSON . 协议类型 } ://${ userID } @${ host } :443?security=tls&type=${ config_JSON . 传输协议 + ECHLINK参数 } &host=${ host } &fp=${ config_JSON . Fingerprint } &sni=${ host } &path=${ encodeURIComponent ( config_JSON . 随机路径 ? 随机路径 ( config_JSON . 完整节点路径 ) : config_JSON . 完整节点路径 ) + TLS分片参数 } &encryption=none${ config_JSON . 跳过证书验证 ? '&insecure=1&allowInsecure=1' : '' } #${ encodeURIComponent ( config_JSON . 优选订阅生成 . SUBNAME ) } ` ;
26822682 config_JSON . 优选订阅生成 . TOKEN = await MD5MD5 ( hostname + userID ) ;
26832683
0 commit comments