1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-21 13:23:07 +01:00

fix: missed a few anlaytics that were not respecting no analytics flag (#3099)

This commit is contained in:
Amir Raminfar
2024-07-11 12:29:53 -07:00
committed by GitHub
parent 5af611ab44
commit ec31d60fb0
4 changed files with 17 additions and 17 deletions

View File

@@ -57,10 +57,10 @@ func main() {
}
defer os.Remove(tempFile.Name())
io.WriteString(tempFile, listener.Addr().String())
go cli.StartEvent(args.Version(), "", args.RemoteAgent, args.RemoteHost, client, "agent")
go cli.StartEvent(args, "", client, "agent")
agent.RunServer(client, certs, listener)
case *cli.HealthcheckCmd:
go cli.StartEvent(args.Version(), "", args.RemoteAgent, args.RemoteHost, nil, "healthcheck")
go cli.StartEvent(args, "", nil, "healthcheck")
files, err := os.ReadDir(".")
if err != nil {
log.Fatalf("Failed to read directory: %v", err)
@@ -92,7 +92,7 @@ func main() {
}
case *cli.GenerateCmd:
go cli.StartEvent(args.Version(), "", args.RemoteAgent, args.RemoteHost, nil, "generate")
go cli.StartEvent(args, "", nil, "generate")
if args.Generate.Username == "" || args.Generate.Password == "" {
log.Fatal("Username and password are required")
}