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:
parent
2b1e90e39b
commit
b9dcf1828a
1 changed files with 3 additions and 3 deletions
|
|
@ -206,14 +206,14 @@ func handleRegistration(cfg *config.Config, serverURL string) error {
|
||||||
fmt.Println("Please configure the server URL before registering:")
|
fmt.Println("Please configure the server URL before registering:")
|
||||||
fmt.Println("")
|
fmt.Println("")
|
||||||
fmt.Println("Option 1 - Use the -server flag:")
|
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("")
|
||||||
fmt.Println("Option 2 - Use environment variable:")
|
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(" redflag-agent.exe -register")
|
||||||
fmt.Println("")
|
fmt.Println("")
|
||||||
fmt.Println("Option 3 - Create a .env file:")
|
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("==================================================================")
|
fmt.Println("==================================================================")
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue