fix(extensions): explicitly disable gostc TLS for HTTP connections

This commit is contained in:
mofeng-git
2026-09-12 23:10:50 +08:00
parent aef136241a
commit c62ff2da87

View File

@@ -276,11 +276,8 @@ impl ExtensionManager {
let c = &config.gostc; let c = &config.gostc;
validate_gostc_config(c)?; validate_gostc_config(c)?;
let mut args = Vec::new(); // gostc defaults to TLS, so disabling it must be explicit.
let mut args = vec![format!("--tls={}", c.tls)];
if c.tls {
args.push("--tls=true".to_string());
}
args.extend(["-addr".to_string(), c.addr.trim().to_string()]); args.extend(["-addr".to_string(), c.addr.trim().to_string()]);