diff --git a/go.mod b/go.mod index 12e3bb0..9c9d1c9 100644 --- a/go.mod +++ b/go.mod @@ -6,7 +6,7 @@ require ( github.com/chilts/sid v0.0.0-20190607042430-660e94789ec9 github.com/jaytaylor/html2text v0.0.0-20230321000545-74c2419ad056 github.com/mmcdole/gofeed v1.3.0 - github.com/xmppo/go-xmpp v0.1.5 + github.com/xmppo/go-xmpp v0.1.6-0.20240411075028-12a04e09506f ) require ( diff --git a/go.sum b/go.sum index d8bdfa7..ce7dc51 100644 --- a/go.sum +++ b/go.sum @@ -37,8 +37,8 @@ github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+ github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk= github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= -github.com/xmppo/go-xmpp v0.1.5 h1:Nxrf+NPxBcpmDTVSNpHPEdHccXJAHE3uMULnM0fOI1U= -github.com/xmppo/go-xmpp v0.1.5/go.mod h1:yOhaLKwPWIe/lMiDS6btyI8lCa56j8RD3iSrel0k/8c= +github.com/xmppo/go-xmpp v0.1.6-0.20240411075028-12a04e09506f h1:VzO17r+5EQt9B0AW4rbAzf+0S4jHWABWl0pRgKq44xc= +github.com/xmppo/go-xmpp v0.1.6-0.20240411075028-12a04e09506f/go.mod h1:wR5vg1WrtcaP0DiW8XRUH9YLdFDjwlwJWl6zQEUqNuo= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= diff --git a/main.go b/main.go index fb83905..e3c72d7 100644 --- a/main.go +++ b/main.go @@ -45,13 +45,14 @@ func main() { var client *xmpp.Client options := xmpp.Options{ - Host: config.ServerAddress, - User: config.BotJid, - Password: config.Password, - NoTLS: true, - StartTLS: true, - Debug: false, - SSDP: true, + Host: config.ServerAddress, + User: config.BotJid, + Password: config.Password, + NoTLS: true, + StartTLS: true, + Debug: false, + SSDP: true, + UserAgentSW: "feed-to-muc", } // Connect to server.