Shadowsocks - 原本就能用 Trojan - 已修复,insecure: true VMess - 已修复,insecure: true VLESS -

已修复,insecure: true Hysteria - 新增支持 Hysteria2 - 已修复,insecure: true

(cherry picked from commit 7fae8a6f4d569a30c5a3606949154a57e5a597d6)
This commit is contained in:
Rust 2025-10-30 11:48:43 +08:00 committed by speakeloudest
parent 7011ba1551
commit 8bba2441c2
2 changed files with 27 additions and 12 deletions

View File

@ -92,7 +92,7 @@ class KROutboundItem {
"tls": {
"enabled": json["security"] == "tls",
"server_name": serverName,
"insecure": securityConfig["allow_insecure"] ?? false,
"insecure": securityConfig["allow_insecure"] ?? true,
"utls": {
"enabled": true,
"fingerprint": securityConfig["fingerprint"] ?? "chrome"
@ -123,7 +123,7 @@ class KROutboundItem {
"tls": {
"enabled": json["security"] == "tls",
"server_name": serverName,
"insecure": securityConfig["allow_insecure"] ?? false,
"insecure": securityConfig["allow_insecure"] ?? true,
"utls": {"enabled": true, "fingerprint": "chrome"}
}
};
@ -156,7 +156,7 @@ class KROutboundItem {
"tls": {
"enabled": true,
"server_name": securityConfig["sni"] ?? "",
"insecure": securityConfig["allow_insecure"] ?? false,
"insecure": securityConfig["allow_insecure"] ?? true,
"alpn": ["h3"]
}
};
@ -181,7 +181,7 @@ class KROutboundItem {
"tls": {
"enabled": json["security"] == "tls",
"server_name": serverName,
"insecure": securityConfig["allow_insecure"] ?? false,
"insecure": securityConfig["allow_insecure"] ?? true,
"utls": {"enabled": true, "fingerprint": "chrome"}
}
};
@ -269,7 +269,7 @@ class KROutboundItem {
"tls": {
"enabled": true,
"server_name": nodeListItem.serverAddr,
"insecure": false,
"insecure": true,
"utls": {
"enabled": true,
"fingerprint": "chrome"
@ -291,7 +291,7 @@ class KROutboundItem {
"tls": {
"enabled": true,
"server_name": nodeListItem.serverAddr,
"insecure": false,
"insecure": true,
"utls": {"enabled": true, "fingerprint": "chrome"}
}
};
@ -308,13 +308,32 @@ class KROutboundItem {
"tls": {
"enabled": true,
"server_name": nodeListItem.serverAddr,
"insecure": false,
"insecure": true,
"utls": {"enabled": true, "fingerprint": "chrome"}
}
};
print('✅ Trojan 节点配置构建成功: ${nodeListItem.name}');
print('📄 完整配置: $config');
break;
case "hysteria":
config = {
"type": "hysteria",
"tag": nodeListItem.name,
"server": nodeListItem.serverAddr,
"server_port": nodeListItem.port,
"up_mbps": 100,
"down_mbps": 100,
"auth_str": nodeListItem.uuid,
"tls": {
"enabled": true,
"server_name": nodeListItem.serverAddr,
"insecure": true,
"alpn": ["h3"]
}
};
print('✅ Hysteria 节点配置构建成功: ${nodeListItem.name}');
print('📄 完整配置: $config');
break;
case "hysteria2":
config = {
"type": "hysteria2",
@ -327,7 +346,7 @@ class KROutboundItem {
"tls": {
"enabled": true,
"server_name": nodeListItem.serverAddr,
"insecure": false,
"insecure": true,
"alpn": ["h3"]
}
};

View File

@ -24,10 +24,6 @@ foreach(plugin ${FLUTTER_PLUGIN_LIST})
target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin)
list(APPEND PLUGIN_BUNDLED_LIBRARIES $<TARGET_FILE:${plugin}_plugin>)
list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries})
# /FS PDB
if(TARGET ${plugin}_plugin)
target_compile_options(${plugin}_plugin PRIVATE /FS)
endif()
endforeach(plugin)
foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST})