From fcead781fe8a9f4046148e16671281e20392d278 Mon Sep 17 00:00:00 2001 From: Michael Eischer <michael.eischer@fau.de> Date: Sat, 25 Jun 2022 14:59:01 +0200 Subject: [PATCH] set default for lookaround --- goatherd.go | 1 + 1 file changed, 1 insertion(+) diff --git a/goatherd.go b/goatherd.go index 9269c68..a778b5d 100644 --- a/goatherd.go +++ b/goatherd.go @@ -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.") -- GitLab