fixed tls ca

This commit is contained in:
ston1th 2020-11-15 01:20:25 +01:00
commit 59d44932a4
2 changed files with 3 additions and 14 deletions

View file

@ -21,6 +21,7 @@ func ParseFile(file string) (cfg *Config, err error) {
if err != nil {
return
}
defer f.Close()
cfg = new(Config)
err = yaml.NewDecoder(f).Decode(cfg)
if err != nil {