config_file.go: allow comments with hash prefix
This commit is contained in:
parent
6f06c4ed65
commit
4890bc4cc7
@ -21,6 +21,10 @@ func configFileLoad(filepath string) error {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if strings.HasPrefix(line, "#") {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
i := strings.Index(line, "=")
|
i := strings.Index(line, "=")
|
||||||
if i == -1 {
|
if i == -1 {
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user