From 74b8c2d96afdfaa519398c09a5f8660f887843d0 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sun, 26 Jun 2022 20:43:18 +0400 Subject: [PATCH] Refactor of main.go to correct terms. --- cmd/justcaptchad/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/justcaptchad/main.go b/cmd/justcaptchad/main.go index d9fed98..fbb8f0a 100644 --- a/cmd/justcaptchad/main.go +++ b/cmd/justcaptchad/main.go @@ -16,7 +16,7 @@ import ( ) var listenAddress *string = flag.String("listen", "/var/run/justcaptcha/c.sock", "listen address (ip:port|unix_path)") -var captchaExpire *time.Duration = flag.Duration("expire", 5*time.Minute, "CAPTCHA expiration in format XX{s,m,h}, e.g. 5m, 300s") +var captchaExpiry *time.Duration = flag.Duration("expiry", 5*time.Minute, "CAPTCHA expiry in format XX{s,m,h}, e.g. 5m, 300s") var showVersion *bool = flag.Bool("v", false, "show version") func main() { @@ -28,7 +28,7 @@ func main() { return } - captcha.Init(*captchaExpire) + captcha.Init(*captchaExpiry) hand := handlers.New() srv := server.NewHttpServer()