Skip to content

Commit

Permalink
Specify multiple interfaces to look for an address on.
Browse files Browse the repository at this point in the history
This allows us to start Cortex on the Mac.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
  • Loading branch information
tomwilkie authored and aknuds1 committed Aug 18, 2021
1 parent 3d5d34f commit 7218f6b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions pkg/util/flagext/strings.go
@@ -0,0 +1,18 @@
package flagext

import (
"fmt"
)

type Strings []string

// String implements flag.Value
func (ss Strings) String() string {
return fmt.Sprintf("%s", []string(ss))
}

// Set implements flag.Value
func (ss *Strings) Set(s string) error {
*ss = append(*ss, s)
return nil
}

0 comments on commit 7218f6b

Please sign in to comment.