mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-14 07:26:47 +00:00
(Re)uses config file for server port
This commit is contained in:
2
main.go
2
main.go
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user