Allow non-unique config sections

This commit is contained in:
Jordan Webb 2022-08-19 23:15:01 -05:00
parent 6e3c3a25f3
commit 13435dcbf4
No known key found for this signature in database
GPG key ID: C341950C47B6CE14

View file

@ -318,8 +318,9 @@ func parseRoutinesConfig(routines *[]RoutineSpawner, cfg *ini.File, sectionName
// ParseConfig takes the path of a configuration file and parses it into Configuration
func ParseConfig(path string) (*Configuration, error) {
iniOpt := ini.LoadOptions{
Insensitive: true,
AllowShadows: true,
Insensitive: true,
AllowShadows: true,
AllowNonUniqueSections: true,
}
cfg, err := ini.LoadSources(iniOpt, path)