Listen to all addresses, not just localhost

This commit is contained in:
jordi fita mas 2023-01-16 11:32:06 +01:00
parent 48ca28a872
commit e31131d88f
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ func main() {
defer dbpool.Close()
srv := http.Server{
Addr: "localhost:8080",
Addr: ":8080",
Handler: router.NewRouter(dbpool),
ReadTimeout: 5 * time.Second,
WriteTimeout: 10 * time.Second,