Skip to content

Commit aa6c895

Browse files
committed
fix: hy2 url
1 parent 2fc0bed commit aa6c895

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

service/hysteria2_api.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,15 +229,15 @@ func Hysteria2Url(accountId int64, hostname string) (string, error) {
229229
urlConfig += fmt.Sprintf("&peer=%s", hysteria2Config.ACME.Domains[0])
230230
}
231231

232-
//var insecure int64 = 0
232+
var insecure int64 = 0
233233
//if hysteria2Config.TLS != nil &&
234234
// hysteria2Config.TLS.Cert != nil &&
235235
// *hysteria2Config.TLS.Cert != "" &&
236236
// hysteria2Config.TLS.Key != nil &&
237237
// *hysteria2Config.TLS.Key != "" {
238238
// insecure = 1
239239
//}
240-
//urlConfig += fmt.Sprintf("&insecure=%d", insecure)
240+
urlConfig += fmt.Sprintf("&insecure=%d", insecure)
241241

242242
if hysteria2Config.Bandwidth != nil &&
243243
hysteria2Config.Bandwidth.Down != nil &&

0 commit comments

Comments
 (0)