default -body=$BODY

master
Bel LaPointe 2023-12-13 07:42:29 -07:00
parent cf779e45f5
commit 72fca93e77
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ func main() {
fail := flag.Bool("fail", false, "fail connections forever") fail := flag.Bool("fail", false, "fail connections forever")
block := flag.Int("block", 0, "seconds to block connections") block := flag.Int("block", 0, "seconds to block connections")
status := flag.Int("status", http.StatusOK, "status to always return") status := flag.Int("status", http.StatusOK, "status to always return")
body := flag.String("body", "", "body to always return") body := flag.String("body", envOrDefault("BODY", ""), "body to always return")
flag.Parse() flag.Parse()
// start server // start server