Refactor of main.go to correct terms.
This commit is contained in:
parent
be4050d1f5
commit
74b8c2d96a
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user