Skip to content

Commit

Permalink
fix(server): gin binds on 0.0.0.0 instead of localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniloMurer committed Aug 8, 2024
1 parent 5bb4c9d commit 43e5d94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "house",
"version": "0.4.0",
"version": "0.4.1",
"private": true,
"repository": "https://github.com/DaniloMurer/churrer.xyz.git",
"author": "Danilo Jakob <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func main() {
api.GET("/telemetry", controller.GetTelemetries)
api.POST("/telemetry", controller.CreateTelemetry)
}
err := router.Run("localhost:8080")
err := router.Run("0.0.0.0:8080")
if err != nil {
panic("we're fucked")
}
Expand Down

0 comments on commit 43e5d94

Please sign in to comment.