Skip to content

Commit dd51349

Browse files
committed
litebastion: fix empty backends file
1 parent 7597397 commit dd51349

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

cmd/litebastion/litebastion.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ func main() {
9292
}
9393
bs := strings.TrimSpace(string(backendsList))
9494
for _, line := range strings.Split(bs, "\n") {
95+
if line == "" {
96+
continue
97+
}
9598
l, err := hex.DecodeString(line)
9699
if err != nil {
97100
return fmt.Errorf("invalid backend: %q", line)

0 commit comments

Comments
 (0)