mirror of
https://github.com/cwinfo/matterbridge.git
synced 2025-06-26 14:19:24 +00:00
Use specified config file
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user