config_file.go: allow comments with hash prefix

This commit is contained in:
Adhityaa 2018-06-21 20:59:42 +05:30
parent 6f06c4ed65
commit 4890bc4cc7

View File

@ -21,6 +21,10 @@ func configFileLoad(filepath string) error {
continue
}
if strings.HasPrefix(line, "#") {
continue
}
i := strings.Index(line, "=")
if i == -1 {
continue