Avoid null ProxyBook map. Fixes #111

This commit is contained in:
Andy Wang 2020-04-18 16:03:18 +01:00
parent 69a73ecfc0
commit 5baac79e56
1 changed files with 3 additions and 0 deletions

View File

@ -126,6 +126,9 @@ func ParseConfig(conf string) (raw RawConfig, err error) {
return
}
}
if raw.ProxyBook == nil {
raw.ProxyBook = make(map[string][]string)
}
return
}