diff --git a/locksmithctl/locksmithctl.go b/locksmithctl/locksmithctl.go index 3eaa6ed..a8b93a3 100644 --- a/locksmithctl/locksmithctl.go +++ b/locksmithctl/locksmithctl.go @@ -76,6 +76,7 @@ func (e *endpoints) String() string { } func (e *endpoints) Set(value string) error { + *e = []string{} for _, url := range strings.Split(value, ",") { *e = append(*e, strings.TrimSpace(url)) }