mirror of
https://github.com/gurnec/removeddit.git
synced 2026-03-11 08:54:27 +00:00
Fixed a bug where the redirect would not start
This commit is contained in:
parent
11ad492ba0
commit
321cdb0fa8
1 changed files with 4 additions and 4 deletions
|
|
@ -107,15 +107,15 @@ func main() {
|
|||
Handler: http.HandlerFunc(redirectTLS),
|
||||
}
|
||||
|
||||
if err := server.ListenAndServeTLS("", ""); err != nil {
|
||||
log.Fatalf("Could not start server with SSL/TLS Certificate: %v", err)
|
||||
}
|
||||
|
||||
go func() {
|
||||
if err := redirect.ListenAndServe(); err != nil {
|
||||
log.Fatalf("Could not start redirect server: %v", err)
|
||||
}
|
||||
}()
|
||||
|
||||
if err := server.ListenAndServeTLS("", ""); err != nil {
|
||||
log.Fatalf("Could not start server with SSL/TLS Certificate: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
log.Println("Shutting down server")
|
||||
|
|
|
|||
Loading…
Reference in a new issue