diff options
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -41,6 +41,9 @@ func main() { ip := os.Getenv("FREEMAIL_HTTP_IP") port := os.Getenv("FREEMAIL_HTTP_PORT") - http.ListenAndServe(ip+":"+port, nil) - log.Println("Ales oke") + err := http.ListenAndServe(ip+":"+port, nil) + if err != nil { + log.Panic(err) + } + log.Println("Server is up and listens on " + ip + ":" + port) } |
