Skip to content

Commit

Permalink
Allow connections from outside localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
Esteban Beltran committed Feb 17, 2023
1 parent 1fb2e19 commit 0b80958
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func server() error {
fmt.Println("Forwarding Grafana notifications to ntfy...", *ntfyUrl)
http.HandleFunc("/", handleRequest)
fmt.Println("Listening on port 8080...")
err := http.ListenAndServe(fmt.Sprintf("127.0.0.1:%d", *port), nil)
err := http.ListenAndServe(fmt.Sprintf(":%d", *port), nil)
if err != nil {
return err
}
Expand Down

0 comments on commit 0b80958

Please sign in to comment.