[misc] add to and from attribut on the zeroconf stream opening. see #3057
This commit is contained in:
parent
38b48d0134
commit
36d3c07676
1 changed files with 2 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue