diff --git a/service/hysteria2_api.go b/service/hysteria2_api.go index 87d78e0..e6b7ef7 100644 --- a/service/hysteria2_api.go +++ b/service/hysteria2_api.go @@ -229,7 +229,7 @@ func Hysteria2Url(accountId int64, hostname string) (string, error) { urlConfig += fmt.Sprintf("&peer=%s", hysteria2Config.ACME.Domains[0]) } - //var insecure int64 = 0 + var insecure int64 = 0 //if hysteria2Config.TLS != nil && // hysteria2Config.TLS.Cert != nil && // *hysteria2Config.TLS.Cert != "" && @@ -237,7 +237,7 @@ func Hysteria2Url(accountId int64, hostname string) (string, error) { // *hysteria2Config.TLS.Key != "" { // insecure = 1 //} - //urlConfig += fmt.Sprintf("&insecure=%d", insecure) + urlConfig += fmt.Sprintf("&insecure=%d", insecure) if hysteria2Config.Bandwidth != nil && hysteria2Config.Bandwidth.Down != nil &&