diff options
| author | Horus3 | 2015-03-30 19:19:34 +0200 |
|---|---|---|
| committer | Horus3 | 2015-03-30 19:19:34 +0200 |
| commit | 3b10bced81423eacca3794934a23c821cdbf1c4f (patch) | |
| tree | 7baee17b918d4e1c1b368a59fc7b594cf07aa5c9 /main.go | |
| parent | 9bb67e86806b38a5ecf98f9844048c675ef14d40 (diff) | |
| download | web2irc-3b10bced81423eacca3794934a23c821cdbf1c4f.tar.gz | |
Add gracefull shutdown.
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -34,6 +34,7 @@ func main() { ip := os.Getenv("WEB2IRC_HTTP_IP") port := os.Getenv("WEB2IRC_HTTP_PORT") + go Shutdown() log.Println("Listening on " + ip + ":" + port) http.ListenAndServe(ip+":"+port, nil) } |
