remove deprecated code from websocket/_examples/secure/main.go

Former-commit-id: 2eb8dff1ac0677473a5f26f938240106903ba336
This commit is contained in:
hiveminded 2017-07-12 14:36:26 +03:00
parent 2b23163a37
commit ace439203d
2 changed files with 1 additions and 4 deletions

View File

@ -21,9 +21,6 @@ func main() {
ctx.Redirect("/test2") 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, // NOTE: This may not work on local addresses like this,
// use it on a real domain, because // use it on a real domain, because
// it uses the "golang.org/x/crypto/acme/autocert" package. // it uses the "golang.org/x/crypto/acme/autocert" package.

View File

@ -164,7 +164,7 @@ QG+tmveBBIYMed5YbWstZu/95lIHF+u8Hl+Z6xgveozfE5yqiUA=
keyFile.WriteString(testTLSKey) keyFile.WriteString(testTLSKey)
// https://localhost // https://localhost
app.ListenTLS("localhost:443", certFile.Name(), keyFile.Name()) app.Run(iris.TLS("localhost:443", certFile.Name(), keyFile.Name()))
certFile.Close() certFile.Close()
time.Sleep(50 * time.Millisecond) time.Sleep(50 * time.Millisecond)