Refactor of main.go to correct terms.

This commit is contained in:
Alexander Andreev 2022-06-26 20:43:18 +04:00
parent be4050d1f5
commit 74b8c2d96a
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F

View File

@ -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()