(Re)uses config file for server port

This commit is contained in:
Scott
2016-06-05 19:48:38 +10:00
parent 95cfb356ba
commit bc34e2f94c

View File

@@ -142,7 +142,7 @@ func main() {
} else {
log.Println("HTTP Webserver support enabled.")
router := NewRouter(bot.exchanges)
log.Fatal(http.ListenAndServe(":8080", router))
log.Fatal(http.ListenAndServe(bot.config.Webserver.ListenAddress, router))
}
}
if !bot.config.Webserver.Enabled {