Skip to content
Snippets Groups Projects
Commit fcead781 authored by Michael Eischer's avatar Michael Eischer
Browse files

set default for lookaround

parent c40a7ea0
No related branches found
No related tags found
1 merge request!3Accumulated extensions to goatherd from I4
......@@ -647,6 +647,7 @@ func main() {
flagConfig := flag.String("config", "/etc/goatherd.conf", "Path to config file")
flag.StringVar(&cfg.DbURL, "db-url", "", "URL used to connect to the database.")
flag.Uint64Var(&cfg.Lookahead, "lookahead", 10, "Counter range to check for matching OTPs.")
flag.Uint64Var(&cfg.Lookaround, "lookaround", 2, "Allow time based counter offset to check for matching OTPs.")
flag.BoolVar(&cfg.Debug, "debug", false, "Enable debug output.")
flag.DurationVar(&cfg.Faildelay.Duration, "faildelay", 1*time.Second,
"Per-user delay after a failed authentication attempt.")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment