distributor: drop gateway on default config

This commit is contained in:
Geno 2021-09-15 18:44:07 +02:00
parent e2562c93c2
commit caf4ccb205
1 changed files with 0 additions and 1 deletions

View File

@ -44,7 +44,6 @@ func main() {
configPath = defaultPath(configPath, "config.toml") configPath = defaultPath(configPath, "config.toml")
if err := file.ReadTOML(configPath, config); err != nil { if err := file.ReadTOML(configPath, config); err != nil {
if os.IsNotExist(err) { if os.IsNotExist(err) {
config.XMPP.Gateway = "up.chat.sum7.eu"
if err := file.SaveTOML(configPath, config); err != nil { if err := file.SaveTOML(configPath, config); err != nil {
log.Panicf("save example config file: %s", err) log.Panicf("save example config file: %s", err)
} }