fix xmpp connection address handling

This commit is contained in:
Martin/Geno 2019-06-26 09:18:50 +02:00
parent 8c0d1b7823
commit 33119f4e39
No known key found for this signature in database
GPG Key ID: 9D7D3C6BFF600C6A
2 changed files with 3 additions and 2 deletions

View File

@ -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 = []

View File

@ -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)