diff --git a/_examples/http-listening/listen-letsencrypt/main.go b/_examples/http-listening/listen-letsencrypt/main.go index e2f20741..94991c1d 100644 --- a/_examples/http-listening/listen-letsencrypt/main.go +++ b/_examples/http-listening/listen-letsencrypt/main.go @@ -21,9 +21,6 @@ func main() { ctx.Redirect("/test2") }) - // If http to https auto-redirect is one of your needs - // please look the code inside ion_deprecateed.go.ListenLETSENCRYPT to do it manually. - // NOTE: This may not work on local addresses like this, // use it on a real domain, because // it uses the "golang.org/x/crypto/acme/autocert" package. diff --git a/websocket/_examples/secure/main.go b/websocket/_examples/secure/main.go index 951f8081..95e63bd3 100644 --- a/websocket/_examples/secure/main.go +++ b/websocket/_examples/secure/main.go @@ -164,7 +164,7 @@ QG+tmveBBIYMed5YbWstZu/95lIHF+u8Hl+Z6xgveozfE5yqiUA= keyFile.WriteString(testTLSKey) // https://localhost - app.ListenTLS("localhost:443", certFile.Name(), keyFile.Name()) + app.Run(iris.TLS("localhost:443", certFile.Name(), keyFile.Name())) certFile.Close() time.Sleep(50 * time.Millisecond)