Listen to all addresses, not just localhost
This commit is contained in:
parent
48ca28a872
commit
e31131d88f
|
@ -22,7 +22,7 @@ func main() {
|
||||||
defer dbpool.Close()
|
defer dbpool.Close()
|
||||||
|
|
||||||
srv := http.Server{
|
srv := http.Server{
|
||||||
Addr: "localhost:8080",
|
Addr: ":8080",
|
||||||
Handler: router.NewRouter(dbpool),
|
Handler: router.NewRouter(dbpool),
|
||||||
ReadTimeout: 5 * time.Second,
|
ReadTimeout: 5 * time.Second,
|
||||||
WriteTimeout: 10 * time.Second,
|
WriteTimeout: 10 * time.Second,
|
||||||
|
|
Loading…
Reference in New Issue