Use address from config (#37)
This commit is contained in:
parent
965f5817c5
commit
e022a451af
2
main.go
2
main.go
|
@ -58,5 +58,5 @@ func main() {
|
||||||
app.Get("/user/:userID/avatar", pages.HandleUserAvatar)
|
app.Get("/user/:userID/avatar", pages.HandleUserAvatar)
|
||||||
app.Get("/gallery/:postID", pages.HandlePost)
|
app.Get("/gallery/:postID", pages.HandlePost)
|
||||||
|
|
||||||
app.Listen(":" + utils.Config["port"].(string))
|
app.Listen(utils.Config["addr"].(string) + ":" + utils.Config["port"].(string))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue