diff --git a/bridge/config/config.go b/bridge/config/config.go index e3b7b52f..290108af 100644 --- a/bridge/config/config.go +++ b/bridge/config/config.go @@ -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