Watch
1
0
Fork
You've already forked RedFlag
0

agent: point the register hint at a placeholder

The Windows configuration notice printed a private LAN address as the example server, so every public binary shipped an unreachable host as its instruction.

your-server.com is what the README already uses.
This commit is contained in:
Fimeg 2026-09-03 18:54:51 -04:00
commit b9dcf1828a

View file

@ -206,14 +206,14 @@ func handleRegistration(cfg *config.Config, serverURL string) error {
fmt.Println("Please configure the server URL before registering:")
fmt.Println("")
fmt.Println("Option 1 - Use the -server flag:")
fmt.Println(" redflag-agent.exe -register -server http://10.10.20.159:8080")
fmt.Println(" redflag-agent.exe -register -server https://your-server.com")
fmt.Println("")
fmt.Println("Option 2 - Use environment variable:")
fmt.Println(" set REDFLAG_SERVER_URL=http://10.10.20.159:8080")
fmt.Println(" set REDFLAG_SERVER_URL=https://your-server.com")
fmt.Println(" redflag-agent.exe -register")
fmt.Println("")
fmt.Println("Option 3 - Create a .env file:")
fmt.Println(" REDFLAG_SERVER_URL=http://10.10.20.159:8080")
fmt.Println(" REDFLAG_SERVER_URL=https://your-server.com")
fmt.Println("==================================================================")
os.Exit(1)
}