Skip to content

Commit

Permalink
fix: hy2 url
Browse files Browse the repository at this point in the history
  • Loading branch information
jonssonyan committed Nov 24, 2024
1 parent 2fc0bed commit aa6c895
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions service/hysteria2_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,15 +229,15 @@ 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 != "" &&
// hysteria2Config.TLS.Key != nil &&
// *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 &&
Expand Down

0 comments on commit aa6c895

Please sign in to comment.