mirror of
https://github.com/42wim/matterbridge.git
synced 2024-12-18 17:12:37 +01:00
Use specified config file
This commit is contained in:
parent
dce600ad51
commit
fd756c5332
@ -68,7 +68,7 @@ type Config struct {
|
|||||||
|
|
||||||
func NewConfig(cfgfile string) *Config {
|
func NewConfig(cfgfile string) *Config {
|
||||||
var cfg Config
|
var cfg Config
|
||||||
if _, err := toml.DecodeFile("matterbridge.toml", &cfg); err != nil {
|
if _, err := toml.DecodeFile(cfgfile, &cfg); err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
return &cfg
|
return &cfg
|
||||||
|
Loading…
Reference in New Issue
Block a user