mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-09-17 13:03:25 +08:00
fix(extensions): explicitly disable gostc TLS for HTTP connections
This commit is contained in:
@@ -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()]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user