Skip to content
Snippets Groups Projects
Commit 36d3c076 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

[misc] add to and from attribut on the zeroconf stream opening. see #3057

parent 38b48d01
No related branches found
No related tags found
No related merge requests found
......@@ -181,6 +181,8 @@ class P2PClient(IdleObject):
# XXX TLS support
#~ self._metastream.setAttr('version', '1.0')
self.Dispatcher._metastream.setAttr('xmlns:stream', NS_STREAMS)
self.Dispatcher._metastream.setAttr('from', self.conn_holder.zeroconf.name)
self.Dispatcher._metastream.setAttr('to', self.to)
self.Dispatcher.send("<?xml version='1.0'?>%s>" % str(self.Dispatcher._metastream)[:-2])
def _check_stream_start(self, ns, tag, attrs):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment