From 33119f4e39151967417c39214c73cf17bac7b489 Mon Sep 17 00:00:00 2001 From: Martin/Geno Date: Wed, 26 Jun 2019 09:18:50 +0200 Subject: [PATCH] fix xmpp connection address handling --- config_example.toml | 4 ++-- main.go | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config_example.toml b/config_example.toml index a6a7ab1..b8d1d22 100644 --- a/config_example.toml +++ b/config_example.toml @@ -2,8 +2,8 @@ log_level = 50 webserver_bind = ":8080" [xmpp] -host = "fireorbit.de" -username = "bot@fireorbit.de" +address = "fireorbit.de" +jid = "bot@fireorbit.de" password = "example" startup_notify_user = ["user@fireorbit.de"] startup_notify_muc = [] diff --git a/main.go b/main.go index b633b23..5385e37 100644 --- a/main.go +++ b/main.go @@ -34,6 +34,7 @@ func main() { router := xmpp.NewRouter() client, err := xmpp.NewClient(xmpp.Config{ + Address: config.XMPP.Address, Jid: config.XMPP.JID, Password: config.XMPP.Password, }, router)