change http address

This commit is contained in:
Caleb Denio 2020-12-23 11:01:50 -05:00
parent 7d2f5a2076
commit 6e0afaff2e

View file

@ -36,7 +36,7 @@ func StartServer(config *Config) {
// Start receiving events
http.HandleFunc("/slack/events", handleSlackEvents)
http.HandleFunc("/slack/leaderboard", HandleLeaderboardSlashCommand)
http.ListenAndServe(fmt.Sprintf("127.0.0.1:%d", config.Port), nil)
http.ListenAndServe(fmt.Sprintf("0.0.0.0:%d", config.Port), nil)
}
func handleSlackEvents(w http.ResponseWriter, r *http.Request) {