mirror of
https://github.com/cedar2025/hysteria.git
synced 2025-09-19 14:46:00 +00:00
fix: crash when the tls option is not used & change from python3 to python
This commit is contained in:
@@ -111,7 +111,7 @@ func generateTestCertificate(dnssan []string, certType string) error {
|
||||
if len(dnssan) > 0 {
|
||||
args = append(args, "--dnssan", strings.Join(dnssan, ","))
|
||||
}
|
||||
cmd := exec.Command("python3", args...)
|
||||
cmd := exec.Command("python", args...)
|
||||
out, err := cmd.CombinedOutput()
|
||||
if err != nil {
|
||||
log.Printf("Failed to generate test certificate: %s", out)
|
||||
@@ -129,7 +129,7 @@ func runTestTLSClient(sni string) error {
|
||||
if sni != "" {
|
||||
args = append(args, "--sni", sni)
|
||||
}
|
||||
cmd := exec.Command("python3", args...)
|
||||
cmd := exec.Command("python", args...)
|
||||
out, err := cmd.CombinedOutput()
|
||||
if err != nil {
|
||||
log.Printf("Failed to run test TLS client: %s", out)
|
||||
|
Reference in New Issue
Block a user