mirror of
https://github.com/kataras/iris.git
synced 2025-03-14 08:26:26 +01:00
remove deprecated code from websocket/_examples/secure/main.go ⚓
Former-commit-id: 2eb8dff1ac0677473a5f26f938240106903ba336
This commit is contained in:
parent
2b23163a37
commit
ace439203d
|
@ -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.
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user