summaryrefslogtreecommitdiff
path: root/xmpp/stream_pair.go
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2023-06-30 20:03:51 +0200
committerxengineering <me@xengineering.eu>2023-06-30 20:03:51 +0200
commite2c057571ae309cf503851ab8f63c2159f2ef4bc (patch)
treef1b28b26c4501292ee4f6d9836f80f1768e1963b /xmpp/stream_pair.go
parent2f1fd4d1ce2c0c2e46fcfa1ffedfd84f0d36484e (diff)
parentd30e2cd84ac54f4ea86f430249f09e272fe9a800 (diff)
downloadlimox-e2c057571ae309cf503851ab8f63c2159f2ef4bc.tar
limox-e2c057571ae309cf503851ab8f63c2159f2ef4bc.tar.zst
limox-e2c057571ae309cf503851ab8f63c2159f2ef4bc.zip
Merge branch 'resource-binding'
This adds some really basic resource binding implementation which will work for now but has to be improved for a first release.
Diffstat (limited to 'xmpp/stream_pair.go')
-rw-r--r--xmpp/stream_pair.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmpp/stream_pair.go b/xmpp/stream_pair.go
index 693972e..4690f57 100644
--- a/xmpp/stream_pair.go
+++ b/xmpp/stream_pair.go
@@ -98,5 +98,10 @@ func streamFeaturesHandler(s *session, e []xml.Token) {
return
}
+ if hasBind(e) {
+ s.sendBind()
+ return
+ }
+
log.Println("Stream has no implemented features!")
}