Skip to content

Commit

Permalink
Move ntfyId from global to local variable
Browse files Browse the repository at this point in the history
  • Loading branch information
dethancosta committed Feb 20, 2024
1 parent 6c6487f commit d02ebda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/tr-server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ const DefaultPort = 6576

var (
Address = "127.0.0.1"
NtfyId = ""
)

func main() {
Expand All @@ -30,6 +29,7 @@ func main() {
// TODO ensure port value is valid
var port int
var standalone bool
var NtfyId string
flag.IntVar(&port, "p", DefaultPort, "The port that the server will run on")
flag.BoolVar(&standalone, "sa", false, "Whether or not the server is run locally (StandAlone)")
flag.StringVar(&NtfyId, "n", "", "The ntfy.sh address to send push notifications to.")
Expand Down

0 comments on commit d02ebda

Please sign in to comment.