1 parent 450da90 commit 78bee1dCopy full SHA for 78bee1d
2 files changed
cmd/litebastion/README.md
@@ -14,6 +14,8 @@ requests over that connection. The bastion then proxies requests received at
14
The only configuration file of litebastion is the backends file, which lists the
15
acceptable client/witness key hashes.
16
17
+Empty lines and lines starting with `#` are ignored.
18
+
19
-listen string
20
host and port to listen at (default "localhost:8443")
21
-cache string
cmd/litebastion/litebastion.go
@@ -105,7 +105,7 @@ func main() {
105
}
106
bs := strings.TrimSpace(string(backendsList))
107
for _, line := range strings.Split(bs, "\n") {
108
- if line == "" {
+ if strings.TrimSpace(line) == "" || line[0] == '#' {
109
continue
110
111
l, err := hex.DecodeString(line)
0 commit comments