Use specified config file

This commit is contained in:
Wim 2016-09-20 23:18:51 +02:00
parent dce600ad51
commit fd756c5332
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ type Config struct {
func NewConfig(cfgfile string) *Config {
var cfg Config
if _, err := toml.DecodeFile("matterbridge.toml", &cfg); err != nil {
if _, err := toml.DecodeFile(cfgfile, &cfg); err != nil {
log.Fatal(err)
}
return &cfg